From 84fea70d4383d30bbfe640ef9a8123475f93ded8 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Wed, 1 Oct 2014 13:57:36 -0500 Subject: Check for null because otherwise we clear the metadata on each update of any value --- src/media-player-mpris.vala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/media-player-mpris.vala') 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) { -- cgit v1.2.3