summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2011-12-07 12:50:47 -0800
committerAndreas Huber <andih@google.com>2011-12-07 12:50:47 -0800
commitbab412099ab1bd3e9e942453cbb42c87ea9a59ec (patch)
treec0f8622f3613dfbeb0975a0792cb46093e0918b8 /media
parent72936144fd16d6d73b7383b634d53909f4887d2b (diff)
downloadframeworks_av-bab412099ab1bd3e9e942453cbb42c87ea9a59ec.zip
frameworks_av-bab412099ab1bd3e9e942453cbb42c87ea9a59ec.tar.gz
frameworks_av-bab412099ab1bd3e9e942453cbb42c87ea9a59ec.tar.bz2
Fetch at least 192KB to avoid our mp3 sniffer from blocking on data.
Change-Id: Icb10c129249bb9b69e91f6633a385840c94efa59 related-to-bug: 5666532
Diffstat (limited to 'media')
-rw-r--r--media/libstagefright/AwesomePlayer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/media/libstagefright/AwesomePlayer.cpp b/media/libstagefright/AwesomePlayer.cpp
index 18dd8ef..50c264e 100644
--- a/media/libstagefright/AwesomePlayer.cpp
+++ b/media/libstagefright/AwesomePlayer.cpp
@@ -2021,9 +2021,9 @@ status_t AwesomePlayer::finishSetDataSource_l() {
mLock.unlock();
- // Initially make sure we have at least 128 bytes for the sniff
+ // Initially make sure we have at least 192 KB for the sniff
// to complete without blocking.
- static const size_t kMinBytesForSniffing = 128;
+ static const size_t kMinBytesForSniffing = 192 * 1024;
off64_t metaDataSize = -1ll;
for (;;) {