[PATCH BlueZ] audio/player: Fix not setting playlist items as playable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx>

All items in the playlist should have playable flag set otherwise they
cannot be part of the playlist.
---
 profiles/audio/player.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/profiles/audio/player.c b/profiles/audio/player.c
index a817b54..ce5e75b 100644
--- a/profiles/audio/player.c
+++ b/profiles/audio/player.c
@@ -1874,6 +1874,8 @@ struct media_item *media_player_set_playlist_item(struct media_player *mp,
 	if (item == NULL)
 		return NULL;
 
+	media_item_set_playable(item, true);
+
 	if (mp->track != item->metadata) {
 		g_hash_table_unref(mp->track);
 		mp->track = g_hash_table_ref(item->metadata);
-- 
1.8.3.1

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux