notify seek complete upon first video output frame

Bug: 18541814
Change-Id: Ie4e0976885f26eb253460eab371cb181ea85f2db
diff --git a/media/libmediaplayerservice/nuplayer/NuPlayer.h b/media/libmediaplayerservice/nuplayer/NuPlayer.h
index 6856af1..6be38a4 100644
--- a/media/libmediaplayerservice/nuplayer/NuPlayer.h
+++ b/media/libmediaplayerservice/nuplayer/NuPlayer.h
@@ -93,6 +93,7 @@
     struct Action;
     struct SeekAction;
     struct SetSurfaceAction;
+    struct ResumeDecoderAction;
     struct FlushDecoderAction;
     struct PostMessageAction;
     struct SimpleAction;
@@ -169,6 +170,9 @@
     FlushStatus mFlushingAudio;
     FlushStatus mFlushingVideo;
 
+    // Status of flush responses from the decoder and renderer.
+    bool mResumePending;
+
     int32_t mVideoScalingMode;
 
     bool mStarted;
@@ -205,6 +209,8 @@
 
     void flushDecoder(bool audio, bool needShutdown);
 
+    void finishResume();
+
     void postScanSources();
 
     void schedulePollDuration();
@@ -217,7 +223,7 @@
     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);