[vlc-commits] dash: Be more permissive about missing attributes.
Hugo Beauzée-Luyssen
git at videolan.org
Wed May 30 12:08:24 CEST 2012
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Wed May 30 11:43:25 2012 +0200| [f46295750b3af84f4841e0af1478dc863be7fa8e] | committer: 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)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f46295750b3af84f4841e0af1478dc863be7fa8e
---
modules/stream_filter/dash/mpd/BasicCMParser.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/stream_filter/dash/mpd/BasicCMParser.cpp b/modules/stream_filter/dash/mpd/BasicCMParser.cpp
index 047e4e2..cb6b9e7 100644
--- a/modules/stream_filter/dash/mpd/BasicCMParser.cpp
+++ b/modules/stream_filter/dash/mpd/BasicCMParser.cpp
@@ -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;
More information about the vlc-commits
mailing list