diff options
author | Lajos Molnar <lajos@google.com> | 2014-03-14 00:40:22 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-03-14 00:40:22 +0000 |
commit | f6bd712c8c252733f9d033ef60219ff1de9342ad (patch) | |
tree | 5deae970692f7c38d16c6e0855e16701eac52cb5 /media/libstagefright/httplive | |
parent | 6e57e4ddc73da69e1f7e8907e6c498e7407e3c39 (diff) | |
parent | 70cc5bdc0fca3f67f3602f04152c29323cad99df (diff) | |
download | frameworks_av-f6bd712c8c252733f9d033ef60219ff1de9342ad.zip frameworks_av-f6bd712c8c252733f9d033ef60219ff1de9342ad.tar.gz frameworks_av-f6bd712c8c252733f9d033ef60219ff1de9342ad.tar.bz2 |
am 70cc5bdc: Merge changes Ic46e3069,Idc92716b into klp-dev
* commit '70cc5bdc0fca3f67f3602f04152c29323cad99df':
LiveSession: fix incorrect stream key (subtitle"s")
M3UParser: trim spaces when parsing comma separated codecs.
Diffstat (limited to 'media/libstagefright/httplive')
-rw-r--r-- | media/libstagefright/httplive/LiveSession.cpp | 2 | ||||
-rw-r--r-- | media/libstagefright/httplive/M3UParser.cpp | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/media/libstagefright/httplive/LiveSession.cpp b/media/libstagefright/httplive/LiveSession.cpp index 0df6abd..90ee3b0 100644 --- a/media/libstagefright/httplive/LiveSession.cpp +++ b/media/libstagefright/httplive/LiveSession.cpp @@ -75,7 +75,7 @@ LiveSession::LiveSession( mStreams[kAudioIndex] = StreamItem("audio"); mStreams[kVideoIndex] = StreamItem("video"); - mStreams[kSubtitleIndex] = StreamItem("subtitle"); + mStreams[kSubtitleIndex] = StreamItem("subtitles"); for (size_t i = 0; i < kMaxStreams; ++i) { mPacketSources.add(indexToType(i), new AnotherPacketSource(NULL /* meta */)); diff --git a/media/libstagefright/httplive/M3UParser.cpp b/media/libstagefright/httplive/M3UParser.cpp index ba6bb9a..7b06a2f 100644 --- a/media/libstagefright/httplive/M3UParser.cpp +++ b/media/libstagefright/httplive/M3UParser.cpp @@ -365,6 +365,7 @@ bool M3UParser::getTypeURI(size_t index, const char *key, AString *uri) const { codecs.append(','); while ((commaPos = codecs.find(",", offset)) >= 0) { AString codec(codecs, offset, commaPos - offset); + codec.trim(); // return true only if a codec of type `key` ("audio"/"video") // is found. if (codecIsType(codec, key)) { |