summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/include/AwesomePlayer.h
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2010-09-28 11:56:39 -0700
committerAndreas Huber <andih@google.com>2010-09-28 11:56:39 -0700
commited54ad0f8619ae416b0968ade6248894cbfc4dba (patch)
tree87a03bed454558ee3dee7826b9fb7e30fdf707b7 /media/libstagefright/include/AwesomePlayer.h
parentdb6222212528637d8f2afa7f49fc3c8c915bafbe (diff)
downloadframeworks_av-ed54ad0f8619ae416b0968ade6248894cbfc4dba.zip
frameworks_av-ed54ad0f8619ae416b0968ade6248894cbfc4dba.tar.gz
frameworks_av-ed54ad0f8619ae416b0968ade6248894cbfc4dba.tar.bz2
Instead of constantly polling the AudioPlayer to see if it reached EOS or finished seeking, initiate the notification from the AudioPlayer when the event happens.
Change-Id: I43875b6adaf96d4e982ef3dfc3d6c8f7034ac51d related-to-bug: 3036592
Diffstat (limited to 'media/libstagefright/include/AwesomePlayer.h')
-rw-r--r--media/libstagefright/include/AwesomePlayer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/media/libstagefright/include/AwesomePlayer.h b/media/libstagefright/include/AwesomePlayer.h
index 1f3946c..600faca 100644
--- a/media/libstagefright/include/AwesomePlayer.h
+++ b/media/libstagefright/include/AwesomePlayer.h
@@ -92,6 +92,9 @@ struct AwesomePlayer {
// This is a mask of MediaExtractor::Flags.
uint32_t flags() const;
+ void postAudioEOS();
+ void postAudioSeekComplete();
+
private:
friend struct AwesomeEvent;