OSDN Git Service

resolved conflicts for merge of 3fe7ee65 to ics-mr1-plus-aosp
authorEric Laurent <elaurent@google.com>
Sat, 17 Mar 2012 00:19:25 +0000 (17:19 -0700)
committerEric Laurent <elaurent@google.com>
Sat, 17 Mar 2012 00:19:25 +0000 (17:19 -0700)
Change-Id: Ia7e1cd869779e9f512e840b768f5b43992c8a122

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