summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/httplive
diff options
context:
space:
mode:
authorRobert Shih <robertshih@google.com>2014-03-10 17:05:01 -0700
committerRobert Shih <robertshih@google.com>2014-03-10 17:21:07 -0700
commit1ac1638077277de52d1dd4c54db71e67753f1960 (patch)
treeddb1190c55c887f87335573ef3cbc36cddff4a46 /media/libstagefright/httplive
parent00133aee1cb52d8acdafd77ffb25dbe5677ff748 (diff)
downloadframeworks_av-1ac1638077277de52d1dd4c54db71e67753f1960.zip
frameworks_av-1ac1638077277de52d1dd4c54db71e67753f1960.tar.gz
frameworks_av-1ac1638077277de52d1dd4c54db71e67753f1960.tar.bz2
M3UParser: trim spaces when parsing comma separated codecs.
Bug: 13402087 Change-Id: Idc92716bfefd6d1b0cb371d0d97d990d53288090
Diffstat (limited to 'media/libstagefright/httplive')
-rw-r--r--media/libstagefright/httplive/M3UParser.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/media/libstagefright/httplive/M3UParser.cpp b/media/libstagefright/httplive/M3UParser.cpp
index 587a6d5..87918c8 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)) {