diff options
author | Andreas Huber <andih@google.com> | 2010-02-18 16:45:13 -0800 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2010-02-18 16:45:13 -0800 |
commit | 2e8ffaf95bd35358ecd14ddf00cddaf3abefe0a9 (patch) | |
tree | 1ea44915709978c008dfeb88767b8997acb6f01e /media/libmediaplayerservice/MediaPlayerService.cpp | |
parent | 1f71e77facd0a2b39f4a0be7fa52850533cc121f (diff) | |
download | frameworks_av-2e8ffaf95bd35358ecd14ddf00cddaf3abefe0a9.zip frameworks_av-2e8ffaf95bd35358ecd14ddf00cddaf3abefe0a9.tar.gz frameworks_av-2e8ffaf95bd35358ecd14ddf00cddaf3abefe0a9.tar.bz2 |
Implement legacy behaviour for MediaPlayer's behaviour of starting from the start of the media on a start() call instead of resuming at the current position, if previously reached the end of the stream. Also properly report number of frames played to audio flinger. Finally, delay spawing the queue thread until actually used.
related-to-bug: 2453220
Diffstat (limited to 'media/libmediaplayerservice/MediaPlayerService.cpp')
-rw-r--r-- | media/libmediaplayerservice/MediaPlayerService.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/media/libmediaplayerservice/MediaPlayerService.cpp b/media/libmediaplayerservice/MediaPlayerService.cpp index b4fc035..50dad33 100644 --- a/media/libmediaplayerservice/MediaPlayerService.cpp +++ b/media/libmediaplayerservice/MediaPlayerService.cpp @@ -1614,6 +1614,8 @@ void MediaPlayerService::AudioOutput::CallbackWrapper( size_t actualSize = (*me->mCallback)( me, buffer->raw, buffer->size, me->mCallbackCookie); + buffer->size = actualSize; + if (actualSize > 0) { me->snoopWrite(buffer->raw, actualSize); } |