[vlc-commits] dash: Working arround specifications ambiguity.
Hugo Beauzée-Luyssen
git at videolan.org
Tue Jan 24 23:22:00 CET 2012
vlc/vlc-1.2 | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Fri Dec 30 19:07:29 2011 +0100| [50f97b3ec466ada916c8ce5693533809241d0787] | 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 <jb at videolan.org>
(cherry picked from commit 5f03006307026c6fbb586a68e665360e9ae9ebb7)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.2.git/?a=commit;h=50f97b3ec466ada916c8ce5693533809241d0787
---
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 );
More information about the vlc-commits
mailing list