]> git.sesse.net Git - vlc/commitdiff
dash: DOMParser: Multiple profile may be used by some streams.
authorHugo Beauzée-Luyssen <hugo@beauzee.fr>
Wed, 9 May 2012 17:03:58 +0000 (19:03 +0200)
committerHugo Beauzée-Luyssen <hugo@beauzee.fr>
Thu, 24 May 2012 08:57:50 +0000 (10:57 +0200)
modules/stream_filter/dash/xml/DOMParser.cpp

index 245145cfa98f07b9a3857b2c380cde97e4427368..21103945d38dc6919d5ad79b076de682bc3465bc 100644 (file)
@@ -159,10 +159,10 @@ Profile DOMParser::getProfile               ()
 
     const std::string profile = this->root->getAttributeValue("profiles");
 
-    if(!profile.compare("urn:mpeg:mpegB:profile:dash:isoff-basic-on-demand:cm"))
+    if(!profile.find("urn:mpeg:mpegB:profile:dash:isoff-basic-on-demand:cm") != std::string::npos)
         return dash::mpd::BasicCM;
 
-    if(!profile.compare("urn:mpeg:dash:profile:isoff-main:2011"))
+    if(!profile.find("urn:mpeg:dash:profile:isoff-main:2011") != std::string::npos)
         return dash::mpd::IsoffMain;
 
     return dash::mpd::UnknownProfile;