vlc | branch: master | Hugo Beauzée-Luyssen <beauz...@gmail.com> | Wed Dec 28 17:32:34 2011 +0100| [4abd446913081747a509e750b5c7e494c4d7a471] | committer: Jean-Baptiste Kempf
dash: Don't require the Representation @id. Many stream won't provide it. Signed-off-by: Jean-Baptiste Kempf <j...@videolan.org> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4abd446913081747a509e750b5c7e494c4d7a471 --- modules/stream_filter/dash/mpd/BasicCMParser.cpp | 7 ++----- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/modules/stream_filter/dash/mpd/BasicCMParser.cpp b/modules/stream_filter/dash/mpd/BasicCMParser.cpp index c1db5ad..acafcb2 100644 --- a/modules/stream_filter/dash/mpd/BasicCMParser.cpp +++ b/modules/stream_filter/dash/mpd/BasicCMParser.cpp @@ -178,12 +178,9 @@ void BasicCMParser::setRepresentations (Node *root, Group *group) it = attributes.find( "id" ); if ( it == attributes.end() ) - { std::cerr << "Missing mandatory attribute for Representation: @id" << std::endl; - delete rep; - continue ; - } - rep->setId( it->second ); + else + rep->setId( it->second ); it = attributes.find( "bandwidth" ); if ( it == attributes.end() ) _______________________________________________ vlc-commits mailing list vlc-commits@videolan.org http://mailman.videolan.org/listinfo/vlc-commits