summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/include
diff options
context:
space:
mode:
Diffstat (limited to 'media/libstagefright/include')
-rw-r--r--media/libstagefright/include/AwesomePlayer.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/media/libstagefright/include/AwesomePlayer.h b/media/libstagefright/include/AwesomePlayer.h
index 06e9468..9115f91 100644
--- a/media/libstagefright/include/AwesomePlayer.h
+++ b/media/libstagefright/include/AwesomePlayer.h
@@ -235,6 +235,7 @@ private:
mutable Mutex mTimedTextLock;
sp<WVMExtractor> mWVMExtractor;
+ sp<MediaExtractor> mExtractor;
status_t setDataSource_l(
const char *uri,
@@ -257,7 +258,7 @@ private:
void setVideoSource(sp<MediaSource> source);
status_t initVideoDecoder(uint32_t flags = 0);
- void addTextSource(const sp<MediaSource>& source);
+ void addTextSource(size_t trackIndex, const sp<MediaSource>& source);
void onStreamDone();
@@ -318,6 +319,14 @@ private:
Vector<TrackStat> mTracks;
} mStats;
+ status_t getTrackInfo(Parcel* reply) const;
+
+ // when select is true, the given track is selected.
+ // otherwise, the given track is unselected.
+ status_t selectTrack(size_t trackIndex, bool select);
+
+ size_t countTracks() const;
+
AwesomePlayer(const AwesomePlayer &);
AwesomePlayer &operator=(const AwesomePlayer &);
};