diff --git a/modules/stream_out/chromecast/chromecast_communication.cpp b/modules/stream_out/chromecast/chromecast_communication.cpp index 71bf51be75..028db19dd3 100644 --- a/modules/stream_out/chromecast/chromecast_communication.cpp +++ b/modules/stream_out/chromecast/chromecast_communication.cpp @@ -327,13 +327,13 @@ std::string ChromecastCommunication::GetMedia( const std::string& mime, { if( !artist.empty() ) ss << ",\"artist\":\"" << artist << "\""; - if( album.empty() ) + if( !album.empty() ) ss << ",\"album\":\"" << album << "\""; - if( albumartist.empty() ) + if( !albumartist.empty() ) ss << ",\"albumArtist\":\"" << albumartist << "\""; - if( tracknumber.empty() ) + if( !tracknumber.empty() ) ss << ",\"trackNumber\":\"" << tracknumber << "\""; - if( discnumber.empty() ) + if( !discnumber.empty() ) ss << ",\"discNumber\":\"" << discnumber << "\""; }