summaryrefslogtreecommitdiffstats
path: root/media/libmediaplayerservice/nuplayer/NuPlayerSource.h
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/NuPlayerSource.h
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/NuPlayerSource.h')
-rw-r--r--media/libmediaplayerservice/nuplayer/NuPlayerSource.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/media/libmediaplayerservice/nuplayer/NuPlayerSource.h b/media/libmediaplayerservice/nuplayer/NuPlayerSource.h
index 11279fc..f5a1d6d 100644
--- a/media/libmediaplayerservice/nuplayer/NuPlayerSource.h
+++ b/media/libmediaplayerservice/nuplayer/NuPlayerSource.h
@@ -72,8 +72,12 @@ struct NuPlayer::Source : public AHandler {
return INVALID_OPERATION;
}
- virtual status_t getTrackInfo(Parcel* /* reply */) const {
- return INVALID_OPERATION;
+ virtual size_t getTrackCount() const {
+ return 0;
+ }
+
+ virtual sp<AMessage> getTrackInfo(size_t /* trackIndex */) const {
+ return NULL;
}
virtual status_t selectTrack(size_t /* trackIndex */, bool /* select */) {