summaryrefslogtreecommitdiffstats
path: root/media/libmediaplayerservice/nuplayer/HTTPLiveSource.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/libmediaplayerservice/nuplayer/HTTPLiveSource.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/libmediaplayerservice/nuplayer/HTTPLiveSource.cpp')
-rw-r--r--media/libmediaplayerservice/nuplayer/HTTPLiveSource.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/media/libmediaplayerservice/nuplayer/HTTPLiveSource.cpp b/media/libmediaplayerservice/nuplayer/HTTPLiveSource.cpp
index cbedf5c..e8431e9 100644
--- a/media/libmediaplayerservice/nuplayer/HTTPLiveSource.cpp
+++ b/media/libmediaplayerservice/nuplayer/HTTPLiveSource.cpp
@@ -120,8 +120,12 @@ status_t NuPlayer::HTTPLiveSource::getDuration(int64_t *durationUs) {
return mLiveSession->getDuration(durationUs);
}
-status_t NuPlayer::HTTPLiveSource::getTrackInfo(Parcel *reply) const {
- return mLiveSession->getTrackInfo(reply);
+size_t NuPlayer::HTTPLiveSource::getTrackCount() const {
+ return mLiveSession->getTrackCount();
+}
+
+sp<AMessage> NuPlayer::HTTPLiveSource::getTrackInfo(size_t trackIndex) const {
+ return mLiveSession->getTrackInfo(trackIndex);
}
status_t NuPlayer::HTTPLiveSource::selectTrack(size_t trackIndex, bool select) {