diff options
author | Andreas Huber <andih@google.com> | 2010-06-07 14:35:29 -0700 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2010-06-07 14:35:29 -0700 |
commit | e71d10e7ad55ccbcb0756c007caef1c959090384 (patch) | |
tree | 42991995bb9ec7c3017f4ad59a3fe761d7aaf772 /media/libstagefright/mpeg2ts | |
parent | cda17c606b0fe3ccda4dc68a6d43882410ea2462 (diff) | |
download | frameworks_av-e71d10e7ad55ccbcb0756c007caef1c959090384.zip frameworks_av-e71d10e7ad55ccbcb0756c007caef1c959090384.tar.gz frameworks_av-e71d10e7ad55ccbcb0756c007caef1c959090384.tar.bz2 |
Initial checkin of preliminary support for "http live" streaming in stagefright.
Change-Id: I20399f63d63af86a3ba22641c0e43385a108fb3f
Diffstat (limited to 'media/libstagefright/mpeg2ts')
-rw-r--r-- | media/libstagefright/mpeg2ts/MPEG2TSExtractor.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/media/libstagefright/mpeg2ts/MPEG2TSExtractor.cpp b/media/libstagefright/mpeg2ts/MPEG2TSExtractor.cpp index b798273..b287c95 100644 --- a/media/libstagefright/mpeg2ts/MPEG2TSExtractor.cpp +++ b/media/libstagefright/mpeg2ts/MPEG2TSExtractor.cpp @@ -175,6 +175,7 @@ status_t MPEG2TSExtractor::feedMore() { bool SniffMPEG2TS( const sp<DataSource> &source, String8 *mimeType, float *confidence) { +#if 0 char header; if (source->readAt(0, &header, 1) != 1 || header != 0x47) { return false; @@ -184,6 +185,13 @@ bool SniffMPEG2TS( mimeType->setTo(MEDIA_MIMETYPE_CONTAINER_MPEG2TS); return true; +#else + // For now we're going to never identify this type of stream, since we'd + // just base our decision on a single byte... + // Instead you can instantiate an MPEG2TSExtractor by explicitly stating + // its proper mime type in the call to MediaExtractor::Create(...). + return false; +#endif } } // namespace android |