[vlc-commits] [Git][videolan/vlc][master] chromecast: Include music metadata

Felix Paul Kühne (@fkuehne) gitlab at videolan.org
Sun Mar 8 18:24:18 UTC 2026



Felix Paul Kühne pushed to branch master at VideoLAN / VLC


Commits:
d4286710 by Mattias Hansson at 2026-03-08T18:50:36+01:00
chromecast: Include music metadata

Music related metadata like album, albumartist, tracknumber and
discnumber is currently not added to media playback messages for
Chromecast.

This patch will add the entries if they're specified in the media
metadata.

- - - - -


1 changed file:

- modules/stream_out/chromecast/chromecast_communication.cpp


Changes:

=====================================
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 << "\"";
             }
 



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/d4286710deafdb96e81b25e37e6eb106122cc8a0

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/d4286710deafdb96e81b25e37e6eb106122cc8a0
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list