diff options
author | Andreas Huber <andih@google.com> | 2011-01-11 15:05:28 -0800 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2011-01-11 15:05:28 -0800 |
commit | 145e68fc778275963189b02a1adcbe27cce4d769 (patch) | |
tree | 91addc4557024a25d8ba64efc79b821be5ca1877 /media/libmedia/mediaplayer.cpp | |
parent | 0ecfbd1cf37dbfb44d19c27351f5769309ac028d (diff) | |
download | frameworks_av-145e68fc778275963189b02a1adcbe27cce4d769.zip frameworks_av-145e68fc778275963189b02a1adcbe27cce4d769.tar.gz frameworks_av-145e68fc778275963189b02a1adcbe27cce4d769.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.cpp | 4 |
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"); |