[vlc-commits] [Git][videolan/vlc][3.0.x] chromecast: Include music metadata

Steve Lhomme (@robUx4) gitlab at videolan.org
Fri Mar 13 15:09:45 UTC 2026



Steve Lhomme pushed to branch 3.0.x at VideoLAN / VLC


Commits:
5a130fb7 by Mattias Hansson at 2026-03-13T14:38:48+00: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.

(cherry picked from commit d4286710deafdb96e81b25e37e6eb106122cc8a0)

- - - - -


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/5a130fb7e2863a0cd259aa9dda0a1d50f33acfaf

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/5a130fb7e2863a0cd259aa9dda0a1d50f33acfaf
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