diff options
author | Ted Gould <ted@gould.cx> | 2014-10-01 13:57:36 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2014-10-01 13:57:36 -0500 |
commit | 84fea70d4383d30bbfe640ef9a8123475f93ded8 (patch) | |
tree | 675637dbd5a2562f623aeac5a36152745caff649 /src/media-player-mpris.vala | |
parent | 722ce01234bb3d5e5f99f206da20d402b3e337c6 (diff) | |
download | ayatana-indicator-sound-84fea70d4383d30bbfe640ef9a8123475f93ded8.tar.gz ayatana-indicator-sound-84fea70d4383d30bbfe640ef9a8123475f93ded8.tar.bz2 ayatana-indicator-sound-84fea70d4383d30bbfe640ef9a8123475f93ded8.zip |
Check for null because otherwise we clear the metadata on each update of any value
Diffstat (limited to 'src/media-player-mpris.vala')
-rw-r--r-- | src/media-player-mpris.vala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/media-player-mpris.vala b/src/media-player-mpris.vala index 80b9ac1..bf25e21 100644 --- a/src/media-player-mpris.vala +++ b/src/media-player-mpris.vala @@ -274,7 +274,8 @@ public class MediaPlayerMpris: MediaPlayer { } var metadata = changed_properties.lookup_value ("Metadata", new VariantType ("a{sv}")); - this.update_current_track (metadata); + if (metadata != null) + this.update_current_track (metadata); } void playlists_proxy_properties_changed (DBusProxy proxy, Variant changed_properties, string[] invalidated_properties) { |