aboutsummaryrefslogtreecommitdiff
path: root/src/mpris2-controller.vala
diff options
context:
space:
mode:
Diffstat (limited to 'src/mpris2-controller.vala')
-rw-r--r--src/mpris2-controller.vala7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mpris2-controller.vala b/src/mpris2-controller.vala
index 58a1906..4990b38 100644
--- a/src/mpris2-controller.vala
+++ b/src/mpris2-controller.vala
@@ -102,9 +102,10 @@ public class Mpris2Controller : GLib.Object
public bool playlist_support()
{
- // awaiting spec updates
- // return this.mpris2_root.HasPlaylists;
- return true;
+ if (this.playlists == null) return false;
+ uint32? count = this.playlists.PlaylistCount;
+ if ( count == null || count <= 0 ) return false;
+ return true;
}
private bool ensure_correct_playback_status(){