diff options
author | Andreas Huber <andih@google.com> | 2011-02-11 13:09:36 -0800 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2011-02-11 13:09:36 -0800 |
commit | f03034408506051f2f836e59305fcd5f662bf19a (patch) | |
tree | 867619a9b721eb07d8c13e08966ca2b1f4689631 /media/libstagefright/include | |
parent | d52e5c3edcb1aedce8b5bea705422fd47b06622e (diff) | |
download | frameworks_av-f03034408506051f2f836e59305fcd5f662bf19a.zip frameworks_av-f03034408506051f2f836e59305fcd5f662bf19a.tar.gz frameworks_av-f03034408506051f2f836e59305fcd5f662bf19a.tar.bz2 |
Start playing (and decoding) audio only after the first video frame has been decoded.
if there's both audio and video content. This gives the video decoder an opportunity
to fill its internal buffer queue at the start of playback.
Change-Id: Ib2c95753b430e4e47207953b913b607024a328d7
related-to-bug: 3431702
Diffstat (limited to 'media/libstagefright/include')
-rw-r--r-- | media/libstagefright/include/AwesomePlayer.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/media/libstagefright/include/AwesomePlayer.h b/media/libstagefright/include/AwesomePlayer.h index 5120a12..797e5ca 100644 --- a/media/libstagefright/include/AwesomePlayer.h +++ b/media/libstagefright/include/AwesomePlayer.h @@ -121,6 +121,9 @@ private: // We're triggering a single video event to display the first frame // after the seekpoint. SEEK_PREVIEW = 4096, + + AUDIO_RUNNING = 8192, + AUDIOPLAYER_STARTED = 16384, }; mutable Mutex mLock; @@ -256,6 +259,8 @@ private: void finishSeekIfNecessary(int64_t videoTimeUs); void ensureCacheIsFetching_l(); + status_t startAudioPlayer_l(); + AwesomePlayer(const AwesomePlayer &); AwesomePlayer &operator=(const AwesomePlayer &); }; |