From a7a73c508cd686932aeab1bfd4d3448c6895b8dd Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Tue, 22 Apr 2014 13:54:08 +0300 Subject: [PATCH] audio/player: Fix properties Browsable/Searchable Those properties are set before the initial scope has been set so checking for scope will always cause them to be invalidated, instead check if any folder exists which indicates that MediaFolder interface will be created shortly. --- profiles/audio/player.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/profiles/audio/player.c b/profiles/audio/player.c index c76352e64..3cfe6795c 100644 --- a/profiles/audio/player.c +++ b/profiles/audio/player.c @@ -393,7 +393,7 @@ static gboolean browsable_exists(const GDBusPropertyTable *property, void *data) { struct media_player *mp = data; - return mp->scope != NULL; + return mp->folder != NULL; } static gboolean get_browsable(const GDBusPropertyTable *property, @@ -402,7 +402,7 @@ static gboolean get_browsable(const GDBusPropertyTable *property, struct media_player *mp = data; dbus_bool_t value; - if (mp->scope == NULL) + if (mp->folder == NULL) return FALSE; DBG("%s", mp->browsable ? "true" : "false"); @@ -419,7 +419,7 @@ static gboolean searchable_exists(const GDBusPropertyTable *property, { struct media_player *mp = data; - return mp->scope != NULL; + return mp->folder != NULL; } static gboolean get_searchable(const GDBusPropertyTable *property, -- 2.47.3