summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJames Dong <jdong@google.com>2012-04-18 17:01:53 -0700
committerJames Dong <jdong@google.com>2012-04-18 17:06:21 -0700
commit692ac36c4b6a09fed5113a4f45f00a041665a769 (patch)
treeef8feed68e5caaa9523a0dba8cfbe0fc6659e49d /include
parent52bef17f5953cd07b1655a3371d833f4de01caae (diff)
downloadframeworks_av-692ac36c4b6a09fed5113a4f45f00a041665a769.zip
frameworks_av-692ac36c4b6a09fed5113a4f45f00a041665a769.tar.gz
frameworks_av-692ac36c4b6a09fed5113a4f45f00a041665a769.tar.bz2
Make timed text source type explicit in TimedTextDriver
o related-to-bug: 5542712 Change-Id: Ifdc730e616336e8b16783e8a5766f27df62a0592
Diffstat (limited to 'include')
-rw-r--r--include/media/stagefright/timedtext/TimedTextDriver.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/media/stagefright/timedtext/TimedTextDriver.h b/include/media/stagefright/timedtext/TimedTextDriver.h
index 1c5fd36..cde551b 100644
--- a/include/media/stagefright/timedtext/TimedTextDriver.h
+++ b/include/media/stagefright/timedtext/TimedTextDriver.h
@@ -68,6 +68,11 @@ private:
PAUSED,
};
+ enum TextSourceType {
+ TEXT_SOURCE_TYPE_IN_BAND = 0,
+ TEXT_SOURCE_TYPE_OUT_OF_BAND,
+ };
+
sp<ALooper> mLooper;
sp<TimedTextPlayer> mPlayer;
wp<MediaPlayerBase> mListener;
@@ -76,7 +81,7 @@ private:
State mState;
size_t mCurrentTrackIndex;
KeyedVector<size_t, sp<TimedTextSource> > mTextSourceVector;
- Vector<bool> mTextSourceTypeVector;
+ Vector<TextSourceType> mTextSourceTypeVector;
// -- End of variables to be guarded by mLock