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 5f030063)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 0a99eaa9
......@@ -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 );
......
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