Commit f4629575 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

dash: Be more permissive about missing attributes.

Some AdaptationSet tags may have no attributes at all. Those should be
found in child nodes (most likely the <Representation> tags)
parent 981dcf74
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment