diff options
author | Robert Shih <robertshih@google.com> | 2014-03-10 17:05:01 -0700 |
---|---|---|
committer | Lajos Molnar <lajos@google.com> | 2014-03-11 14:07:58 -0700 |
commit | 9f434cfd021f60e26baf589dc34bf3839b832d4d (patch) | |
tree | 9fa877e66c8a8f21b3d6ffd8558c366b74cff651 | |
parent | ceeabe15f4e7bc73efdfcafed917202de9d515cb (diff) | |
download | frameworks_av-9f434cfd021f60e26baf589dc34bf3839b832d4d.zip frameworks_av-9f434cfd021f60e26baf589dc34bf3839b832d4d.tar.gz frameworks_av-9f434cfd021f60e26baf589dc34bf3839b832d4d.tar.bz2 |
M3UParser: trim spaces when parsing comma separated codecs.
Bug: 13402087
Change-Id: Idc92716bfefd6d1b0cb371d0d97d990d53288090
-rw-r--r-- | media/libstagefright/httplive/M3UParser.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/media/libstagefright/httplive/M3UParser.cpp b/media/libstagefright/httplive/M3UParser.cpp index 8f530ee..f211bc8 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)) { |