From e71d10e7ad55ccbcb0756c007caef1c959090384 Mon Sep 17 00:00:00 2001 From: Andreas Huber Date: Mon, 7 Jun 2010 14:35:29 -0700 Subject: Initial checkin of preliminary support for "http live" streaming in stagefright. Change-Id: I20399f63d63af86a3ba22641c0e43385a108fb3f --- media/libstagefright/mpeg2ts/MPEG2TSExtractor.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'media/libstagefright/mpeg2ts') 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 &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 -- cgit v1.1