vlc | branch: master | Hugo Beauzée-Luyssen <[email protected]> | Fri Dec 30 19:07:29 2011 +0100| [5f03006307026c6fbb586a68e665360e9ae9ebb7] | committer: Jean-Baptiste Kempf
dash: Working arround specifications ambiguity. profile is spelled once as "profile", and "profiles" a few line after, so we now handle both. Signed-off-by: Jean-Baptiste Kempf <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5f03006307026c6fbb586a68e665360e9ae9ebb7 --- modules/stream_filter/dash/mpd/BasicCMParser.cpp | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/modules/stream_filter/dash/mpd/BasicCMParser.cpp b/modules/stream_filter/dash/mpd/BasicCMParser.cpp index 8ded464..25d3f6d 100644 --- a/modules/stream_filter/dash/mpd/BasicCMParser.cpp +++ b/modules/stream_filter/dash/mpd/BasicCMParser.cpp @@ -65,6 +65,8 @@ bool BasicCMParser::setMPD() std::map<std::string, std::string>::const_iterator it; it = attr.find( "profile" ); + if ( it == attr.end() ) + it = attr.find( "profiles" ); //The standard spells it the two ways... if ( it != attr.end() ) this->mpd->setProfile( it->second ); _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
