diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-04-22 13:54:08 +0300 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-04-23 17:54:58 +0300 |
commit | a7a73c508cd686932aeab1bfd4d3448c6895b8dd (patch) | |
tree | 8e7b73e827b8ef3ddf70752fe4013e416df9f757 /profiles | |
parent | 6744685410fbf393e849f678cac6c6f81f6843bb (diff) | |
download | bluez-a7a73c508cd686932aeab1bfd4d3448c6895b8dd.tar.gz |
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.
Diffstat (limited to 'profiles')
-rw-r--r-- | profiles/audio/player.c | 6 |
1 files 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, |