]> git.sesse.net Git - vlc/commitdiff
dash: Handle multiple names for profile "urn:mpeg:dash:profile:isoff-on-demand:2011"
authorHugo Beauzée-Luyssen <hugo@beauzee.fr>
Tue, 29 May 2012 16:23:28 +0000 (18:23 +0200)
committerHugo Beauzée-Luyssen <hugo@beauzee.fr>
Wed, 30 May 2012 10:08:28 +0000 (12:08 +0200)
The first version was used during some testing phase and should probably
be removed at a point.
The second one is an alternate spelling.

modules/stream_filter/dash/xml/DOMParser.cpp

index ddbadd60fef159a6512162f3ec4ace0e67d15c8e..f1eac4b8f712cb29f4a9d880712d29ad77bea6f5 100644 (file)
@@ -159,7 +159,9 @@ Profile DOMParser::getProfile               ()
 
     const std::string profile = this->root->getAttributeValue("profiles");
 
-    if(profile.find("urn:mpeg:mpegB:profile:dash:isoff-basic-on-demand:cm") != std::string::npos)
+    if(profile.find("urn:mpeg:mpegB:profile:dash:isoff-basic-on-demand:cm") != std::string::npos ||
+            profile.find("urn:mpeg:dash:profile:isoff-ondemand:2011") != std::string::npos ||
+            profile.find("urn:mpeg:dash:profile:isoff-on-demand:2011") != std::string::npos)
         return dash::mpd::BasicCM;
 
     if(profile.find("urn:mpeg:dash:profile:isoff-main:2011") != std::string::npos)