summaryrefslogtreecommitdiffstats
path: root/media/libmediaplayerservice/nuplayer/NuPlayer.h
diff options
context:
space:
mode:
authorChong Zhang <chz@google.com>2014-12-02 00:26:59 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-12-02 00:26:59 +0000
commit6c5db47a612c52533066dde2d867454689ea30ff (patch)
tree7ccd4792f204693e6dfe36f171f6e751993df09d /media/libmediaplayerservice/nuplayer/NuPlayer.h
parentd03179ac50bc59129215e9272129665da24a27cc (diff)
parent3253bef38cd6653768e7858f95d8baf371d58bf0 (diff)
downloadframeworks_av-6c5db47a612c52533066dde2d867454689ea30ff.zip
frameworks_av-6c5db47a612c52533066dde2d867454689ea30ff.tar.gz
frameworks_av-6c5db47a612c52533066dde2d867454689ea30ff.tar.bz2
am 3253bef3: am d8731629: Merge "notify seek complete upon first video output frame" into lmp-mr1-dev
* commit '3253bef38cd6653768e7858f95d8baf371d58bf0': notify seek complete upon first video output frame
Diffstat (limited to 'media/libmediaplayerservice/nuplayer/NuPlayer.h')
-rw-r--r--media/libmediaplayerservice/nuplayer/NuPlayer.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/media/libmediaplayerservice/nuplayer/NuPlayer.h b/media/libmediaplayerservice/nuplayer/NuPlayer.h
index 0fd64ad..c64b32f 100644
--- a/media/libmediaplayerservice/nuplayer/NuPlayer.h
+++ b/media/libmediaplayerservice/nuplayer/NuPlayer.h
@@ -93,6 +93,7 @@ private:
struct Action;
struct SeekAction;
struct SetSurfaceAction;
+ struct ResumeDecoderAction;
struct FlushDecoderAction;
struct PostMessageAction;
struct SimpleAction;
@@ -169,6 +170,9 @@ private:
FlushStatus mFlushingAudio;
FlushStatus mFlushingVideo;
+ // Status of flush responses from the decoder and renderer.
+ bool mResumePending;
+
int32_t mVideoScalingMode;
bool mStarted;
@@ -205,6 +209,8 @@ private:
void flushDecoder(bool audio, bool needShutdown);
+ void finishResume();
+
void postScanSources();
void schedulePollDuration();
@@ -217,7 +223,7 @@ private:
void performReset();
void performScanSources();
void performSetSurface(const sp<NativeWindowWrapper> &wrapper);
- void performResumeDecoders();
+ void performResumeDecoders(bool needNotify);
void onSourceNotify(const sp<AMessage> &msg);
void onClosedCaptionNotify(const sp<AMessage> &msg);