Commit 5f030063 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen Committed by 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: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 13002a34
...@@ -65,6 +65,8 @@ bool BasicCMParser::setMPD() ...@@ -65,6 +65,8 @@ bool BasicCMParser::setMPD()
std::map<std::string, std::string>::const_iterator it; std::map<std::string, std::string>::const_iterator it;
it = attr.find( "profile" ); it = attr.find( "profile" );
if ( it == attr.end() )
it = attr.find( "profiles" ); //The standard spells it the two ways...
if ( it != attr.end() ) if ( it != attr.end() )
this->mpd->setProfile( it->second ); this->mpd->setProfile( it->second );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment