[vlc-commits] dash: DOMParser: Multiple profile may be used by some streams.
Hugo Beauzée-Luyssen
git at videolan.org
Thu May 24 11:39:40 CEST 2012
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Wed May 9 19:03:58 2012 +0200| [0527a38e304e312dedde97fab3c9e5ef8785abf1] | committer: Hugo Beauzée-Luyssen
dash: DOMParser: Multiple profile may be used by some streams.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0527a38e304e312dedde97fab3c9e5ef8785abf1
---
modules/stream_filter/dash/xml/DOMParser.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/stream_filter/dash/xml/DOMParser.cpp b/modules/stream_filter/dash/xml/DOMParser.cpp
index 245145c..2110394 100644
--- a/modules/stream_filter/dash/xml/DOMParser.cpp
+++ b/modules/stream_filter/dash/xml/DOMParser.cpp
@@ -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;
More information about the vlc-commits
mailing list