From 9c0096378820e5a61db26e52a7e6df50ba9c872d Mon Sep 17 00:00:00 2001 From: Andreas Huber Date: Tue, 8 Feb 2011 13:10:25 -0800 Subject: Handle some edge cases when seeking while starting up OMXCodec These were exposed by the new preview-seekframe while paused code. In particular, the codec may have been in state RECONFIGURING when attempting to seek, or we may have initiated flushing of the output port and this may not have completed yet by the time we want to reconfigure the output port. Change-Id: Id7640ade11dbc7205a22f648ea0b5e3e9b49cf4b related-to-bug: 3392259 --- include/media/stagefright/OMXCodec.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/media/stagefright/OMXCodec.h b/include/media/stagefright/OMXCodec.h index 82948cb..f7d837a 100644 --- a/include/media/stagefright/OMXCodec.h +++ b/include/media/stagefright/OMXCodec.h @@ -175,6 +175,7 @@ private: int64_t mSeekTimeUs; ReadOptions::SeekMode mSeekMode; int64_t mTargetTimeUs; + bool mOutputPortSettingsChangedPending; MediaBuffer *mLeftOverBuffer; -- cgit v1.1