Commit 50f97b3e 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>
(cherry picked from commit 5f03006307026c6fbb586a68e665360e9ae9ebb7)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 0a99eaa9
...@@ -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