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

dash: DOMParser: Multiple profile may be used by some streams.

parent 24338ce3
......@@ -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;
......
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