]> git.sesse.net Git - vlc/commitdiff
dash: Be more permissive about missing attributes.
authorHugo Beauzée-Luyssen <hugo@beauzee.fr>
Wed, 30 May 2012 09:43:25 +0000 (11:43 +0200)
committerHugo Beauzée-Luyssen <hugo@beauzee.fr>
Wed, 30 May 2012 10:08:28 +0000 (12:08 +0200)
Some AdaptationSet tags may have no attributes at all. Those should be
found in child nodes (most likely the <Representation> tags)

modules/stream_filter/dash/mpd/BasicCMParser.cpp

index 047e4e21d0a840313137fc79008f7f302b442d5f..cb6b9e77e47d6249962297f7e51ef8fedbe562ea 100644 (file)
@@ -561,7 +561,7 @@ bool    BasicCMParser::parseCommonAttributesElements( Node *node, CommonAttribut
     {
         if ( parent && parent->getMimeType().empty() == false )
             common->setMimeType( parent->getMimeType() );
-        else
+        else if ( node->getName().find( "Representation" ) != std::string::npos )
         {
             std::cerr << "Missing mandatory attribute: @mimeType" << std::endl;
             return false;