summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/httplive/LiveSession.cpp
diff options
context:
space:
mode:
authorChong Zhang <chz@google.com>2014-06-11 14:45:31 -0700
committerChong Zhang <chz@google.com>2014-06-13 10:17:23 -0700
commit404fced9bfa8fa423ee210a271ca051ffd1bec13 (patch)
treefe0cf90c5346cdcd2fcc6a78a8c245018c5f6b55 /media/libstagefright/httplive/LiveSession.cpp
parent31dcd338b3826928646d77f23f977ecdd52598a3 (diff)
downloadframeworks_av-404fced9bfa8fa423ee210a271ca051ffd1bec13.zip
frameworks_av-404fced9bfa8fa423ee210a271ca051ffd1bec13.tar.gz
frameworks_av-404fced9bfa8fa423ee210a271ca051ffd1bec13.tar.bz2
refactor getTrackInfo()
(this is in preparation for supporting other cc source) - split into two methods: getTrackCount() and getTrackInfo() - move track info parcelling to NuPlayer - parcel in the mime type of the subtitle format Bug: 15470448 Change-Id: If00724d8c3a2b2319cb9c5f29d3fe76347bfe947
Diffstat (limited to 'media/libstagefright/httplive/LiveSession.cpp')
-rw-r--r--media/libstagefright/httplive/LiveSession.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/media/libstagefright/httplive/LiveSession.cpp b/media/libstagefright/httplive/LiveSession.cpp
index 08a146f..10cdde2 100644
--- a/media/libstagefright/httplive/LiveSession.cpp
+++ b/media/libstagefright/httplive/LiveSession.cpp
@@ -926,8 +926,12 @@ bool LiveSession::hasDynamicDuration() const {
return false;
}
-status_t LiveSession::getTrackInfo(Parcel *reply) const {
- return mPlaylist->getTrackInfo(reply);
+size_t LiveSession::getTrackCount() const {
+ return mPlaylist->getTrackCount();
+}
+
+sp<AMessage> LiveSession::getTrackInfo(size_t trackIndex) const {
+ return mPlaylist->getTrackInfo(trackIndex);
}
status_t LiveSession::selectTrack(size_t index, bool select) {