diff options
author | Andreas Huber <andih@google.com> | 2013-02-05 13:59:56 -0800 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2013-02-05 14:09:08 -0800 |
commit | 9575c96b6e418914e2ffc6741ecc8d71e3968dbe (patch) | |
tree | 1fafdf4d3150799cf9a4266919bf069b7f007c91 /media/libmediaplayerservice/nuplayer/StreamingSource.cpp | |
parent | 84ca0414fedea2dfe51607b422f6227e1c4f0d7f (diff) | |
download | frameworks_av-9575c96b6e418914e2ffc6741ecc8d71e3968dbe.zip frameworks_av-9575c96b6e418914e2ffc6741ecc8d71e3968dbe.tar.gz frameworks_av-9575c96b6e418914e2ffc6741ecc8d71e3968dbe.tar.bz2 |
Support for a "preparation" state that can take care of lengthy
operations in NuPlayer and its sources. Sources also can publish their
flags now and the mediaplayer UI will be able to pick up on these.
Change-Id: I4f2b7e5d105dcb4b6c9132cd0e8799efa0c6a14b
Diffstat (limited to 'media/libmediaplayerservice/nuplayer/StreamingSource.cpp')
-rw-r--r-- | media/libmediaplayerservice/nuplayer/StreamingSource.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/media/libmediaplayerservice/nuplayer/StreamingSource.cpp b/media/libmediaplayerservice/nuplayer/StreamingSource.cpp index 9b04833..df03f86 100644 --- a/media/libmediaplayerservice/nuplayer/StreamingSource.cpp +++ b/media/libmediaplayerservice/nuplayer/StreamingSource.cpp @@ -43,6 +43,12 @@ NuPlayer::StreamingSource::StreamingSource( NuPlayer::StreamingSource::~StreamingSource() { } +void NuPlayer::StreamingSource::prepareAsync() { + notifyVideoSizeChanged(0, 0); + notifyFlagsChanged(0); + notifyPrepared(); +} + void NuPlayer::StreamingSource::start() { mStreamListener = new NuPlayerStreamListener(mSource, 0); @@ -176,9 +182,5 @@ status_t NuPlayer::StreamingSource::dequeueAccessUnit( return err; } -uint32_t NuPlayer::StreamingSource::flags() const { - return 0; -} - } // namespace android |