diff options
author | Andreas Huber <andih@google.com> | 2012-09-28 10:23:51 -0700 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2012-09-28 10:23:51 -0700 |
commit | 96fc6cc65ca93009a759a3a874b82a35771b9714 (patch) | |
tree | 8084454da63f974ef6ccfe29e5e3760184ec185b /media/libstagefright/wifi-display/source/Converter.h | |
parent | de799a74064a363d26f4c1bbc5a59d1b7127f49f (diff) | |
download | frameworks_av-96fc6cc65ca93009a759a3a874b82a35771b9714.zip frameworks_av-96fc6cc65ca93009a759a3a874b82a35771b9714.tar.gz frameworks_av-96fc6cc65ca93009a759a3a874b82a35771b9714.tar.bz2 |
Various improvements to a cleaner shutdown of the wifi display connection.
Change-Id: Id029a89939e53c2bd1d20e572d3975ec2795c239
related-to-bug: 7247918
Diffstat (limited to 'media/libstagefright/wifi-display/source/Converter.h')
-rw-r--r-- | media/libstagefright/wifi-display/source/Converter.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/media/libstagefright/wifi-display/source/Converter.h b/media/libstagefright/wifi-display/source/Converter.h index 901ae2e..9f54523 100644 --- a/media/libstagefright/wifi-display/source/Converter.h +++ b/media/libstagefright/wifi-display/source/Converter.h @@ -51,18 +51,20 @@ struct Converter : public AHandler { kWhatError, }; -protected: - virtual ~Converter(); - virtual void onMessageReceived(const sp<AMessage> &msg); - -private: enum { - kWhatFeedAccessUnit, - kWhatInputEOS, kWhatDoMoreWork, kWhatRequestIDRFrame, + kWhatShutdown, + kWhatMediaPullerNotify, }; + void shutdownAsync(); + +protected: + virtual ~Converter(); + virtual void onMessageReceived(const sp<AMessage> &msg); + +private: status_t mInitCheck; sp<AMessage> mNotify; sp<ALooper> mCodecLooper; |