OSDN Git Service

resolved conflicts for merge of 393dd03e to ics-scoop-plus-aosp
authorEric Laurent <elaurent@google.com>
Sat, 17 Mar 2012 00:22:34 +0000 (17:22 -0700)
committerEric Laurent <elaurent@google.com>
Sat, 17 Mar 2012 00:22:34 +0000 (17:22 -0700)
Change-Id: Ib6af53957780a09e59d663206b956a39fe883d6a

1  2 
media/libmedia/AudioTrack.cpp

@@@ -763,12 -763,9 +763,9 @@@ status_t AudioTrack::createTrack_l
                  mNotificationFramesAct = frameCount/2;
              }
              if (frameCount < minFrameCount) {
-                 if (enforceFrameCount) {
-                     ALOGE("Invalid buffer size: minFrameCount %d, frameCount %d", minFrameCount, frameCount);
-                     return BAD_VALUE;
-                 } else {
-                     frameCount = minFrameCount;
-                 }
 -                LOGW_IF(enforceFrameCount, "Minimum buffer size corrected from %d to %d",
++                ALOGW_IF(enforceFrameCount, "Minimum buffer size corrected from %d to %d",
+                          frameCount, minFrameCount);
+                 frameCount = minFrameCount;
              }
          } else {
              // Ensure that buffer alignment matches channelcount