summaryrefslogtreecommitdiffstats
path: root/media/libmedia/mediaplayer.cpp
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2011-01-11 15:05:28 -0800
committerAndreas Huber <andih@google.com>2011-01-11 15:05:28 -0800
commit52c7832e35b6f0c7d6197eb09346cea7dc5bea6b (patch)
treedb9a4a5c8fa8413d6a0221297c8899342bd4f7ce /media/libmedia/mediaplayer.cpp
parente0b1912480d3c5cfa3f4cf3dd9d7cddd10d68c63 (diff)
downloadframeworks_base-52c7832e35b6f0c7d6197eb09346cea7dc5bea6b.zip
frameworks_base-52c7832e35b6f0c7d6197eb09346cea7dc5bea6b.tar.gz
frameworks_base-52c7832e35b6f0c7d6197eb09346cea7dc5bea6b.tar.bz2
Increase cache size and low-watermark threshold, also
MediaPlayer now sends out MEDIA_INFO,MEDIA_INFO_VIDEO_TRACK_LAGGING messages to the JAVA client informing it how much (if at all) the video lags behind audio (arg2 is the media delay in ms). Change-Id: I6933f573d8597a35112e4b5ee0fcb826a7f6ddd1 related-to-bug: 3335220
Diffstat (limited to 'media/libmedia/mediaplayer.cpp')
-rw-r--r--media/libmedia/mediaplayer.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/media/libmedia/mediaplayer.cpp b/media/libmedia/mediaplayer.cpp
index a098d69..87c8fe4 100644
--- a/media/libmedia/mediaplayer.cpp
+++ b/media/libmedia/mediaplayer.cpp
@@ -607,7 +607,9 @@ void MediaPlayer::notify(int msg, int ext1, int ext2)
case MEDIA_INFO:
// ext1: Media framework error code.
// ext2: Implementation dependant error code.
- LOGW("info/warning (%d, %d)", ext1, ext2);
+ if (ext1 != MEDIA_INFO_VIDEO_TRACK_LAGGING) {
+ LOGW("info/warning (%d, %d)", ext1, ext2);
+ }
break;
case MEDIA_SEEK_COMPLETE:
LOGV("Received seek complete");