Diff between 2b6c519d68813412e18406a6901fa60ef3ec7627 and 1439c6546d0889fbfba5ed184cf34fc4e9f5126c

Changed Files

File Additions Deletions Status
profiles/audio/player.c +8 -0 modified

Full Patch

diff --git a/profiles/audio/player.c b/profiles/audio/player.c
index 50492fa..7295235 100644
--- a/profiles/audio/player.c
+++ b/profiles/audio/player.c
@@ -959,6 +959,10 @@ void media_player_set_browsable(struct media_player *mp, bool enabled)
 	DBG("%s", enabled ? "true" : "false");
 
 	mp->browsable = enabled;
+
+	g_dbus_emit_property_changed(btd_get_dbus_connection(),
+					mp->path, MEDIA_PLAYER_INTERFACE,
+					"Browsable");
 }
 
 void media_player_set_searchable(struct media_player *mp, bool enabled)
@@ -966,6 +970,10 @@ void media_player_set_searchable(struct media_player *mp, bool enabled)
 	DBG("%s", enabled ? "true" : "false");
 
 	mp->searchable = enabled;
+
+	g_dbus_emit_property_changed(btd_get_dbus_connection(),
+					mp->path, MEDIA_PLAYER_INTERFACE,
+					"Searchable");
 }
 
 static void media_player_set_folder_item(struct media_player *mp,