aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/media-player-mpris.vala3
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) {