summaryrefslogtreecommitdiffstats
path: root/media/libmediaplayerservice/nuplayer/NuPlayerDriver.h
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2011-01-04 14:01:29 -0800
committerAndreas Huber <andih@google.com>2011-01-04 14:07:58 -0800
commit1aef211b4e5dc952081727bfd2318b2cb5ca4506 (patch)
tree1644390b5e1f5cb8ddd228a28e69b5a18c747e0b /media/libmediaplayerservice/nuplayer/NuPlayerDriver.h
parent65a170e3ac593a29abd0c76e9aa531fabad7f56d (diff)
downloadframeworks_av-1aef211b4e5dc952081727bfd2318b2cb5ca4506.zip
frameworks_av-1aef211b4e5dc952081727bfd2318b2cb5ca4506.tar.gz
frameworks_av-1aef211b4e5dc952081727bfd2318b2cb5ca4506.tar.bz2
Properly shutdown the decoders on a reset() in NuPlayer's implementation.
related-to-bug: 3321470 Change-Id: Ida6d2171c5a3a407188d4633602b764f8fe7086a
Diffstat (limited to 'media/libmediaplayerservice/nuplayer/NuPlayerDriver.h')
-rw-r--r--media/libmediaplayerservice/nuplayer/NuPlayerDriver.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/media/libmediaplayerservice/nuplayer/NuPlayerDriver.h b/media/libmediaplayerservice/nuplayer/NuPlayerDriver.h
index 44ae3bf..f153af4 100644
--- a/media/libmediaplayerservice/nuplayer/NuPlayerDriver.h
+++ b/media/libmediaplayerservice/nuplayer/NuPlayerDriver.h
@@ -54,10 +54,16 @@ struct NuPlayerDriver : public MediaPlayerInterface {
virtual status_t getMetadata(
const media::Metadata::Filter& ids, Parcel *records);
+ virtual void sendEvent(int msg, int ext1 = 0, int ext2 = 0);
+
protected:
virtual ~NuPlayerDriver();
private:
+ Mutex mLock;
+ Condition mCondition;
+ bool mResetInProgress;
+
sp<ALooper> mLooper;
sp<NuPlayer> mPlayer;
bool mPlaying;