diff options
author | James Dong <jdong@google.com> | 2012-04-13 13:02:57 -0700 |
---|---|---|
committer | James Dong <jdong@google.com> | 2012-04-13 13:08:57 -0700 |
commit | 613c8ae1b7a2b4f43b33a72dc2fff0bc8b7d4c6f (patch) | |
tree | e301e98ae7b69f611ce9d3a9d0ab57c556ecb8cc /include/media/stagefright/timedtext | |
parent | d2469c3fe382203eb7cd5060c94ed204bec98116 (diff) | |
download | frameworks_av-613c8ae1b7a2b4f43b33a72dc2fff0bc8b7d4c6f.zip frameworks_av-613c8ae1b7a2b4f43b33a72dc2fff0bc8b7d4c6f.tar.gz frameworks_av-613c8ae1b7a2b4f43b33a72dc2fff0bc8b7d4c6f.tar.bz2 |
Add external timed text source using a passed file descriptor
o Also fixed a minor issue where the file length should be of type off64_t rather than size_t
o related-to-bug: 5542712
Change-Id: I35fd8ceea0bc75e553b7f4a99932cf58ea560c4e
Diffstat (limited to 'include/media/stagefright/timedtext')
-rw-r--r-- | include/media/stagefright/timedtext/TimedTextDriver.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/media/stagefright/timedtext/TimedTextDriver.h b/include/media/stagefright/timedtext/TimedTextDriver.h index b9752df..e3ca536 100644 --- a/include/media/stagefright/timedtext/TimedTextDriver.h +++ b/include/media/stagefright/timedtext/TimedTextDriver.h @@ -30,6 +30,7 @@ class MediaSource; class Parcel; class TimedTextPlayer; class TimedTextSource; +class DataSource; class TimedTextDriver { public: @@ -48,7 +49,7 @@ public: status_t addOutOfBandTextSource(const char *uri, const char *mimeType); // Caller owns the file desriptor and caller is responsible for closing it. status_t addOutOfBandTextSource( - int fd, off64_t offset, size_t length, const char *mimeType); + int fd, off64_t offset, off64_t length, const char *mimeType); void getTrackInfo(Parcel *parcel); @@ -72,6 +73,8 @@ private: // -- End of variables to be guarded by mLock status_t selectTrack_l(int32_t index); + status_t createOutOfBandTextSource( + const char *mimeType, const sp<DataSource>& dataSource); DISALLOW_EVIL_CONSTRUCTORS(TimedTextDriver); }; |