Diff between 261948090e9073514ac4b5f64c8715cf0a71eafa and fc458328d39b71529d7760fddee018e6458b97b4
Changed Files
| File | Additions | Deletions | Status |
| profiles/audio/player.c | +3 | -3 | modified |
Full Patch
diff --git a/profiles/audio/player.c b/profiles/audio/player.c
index f47f626..09ee979 100644
--- a/profiles/audio/player.c
+++ b/profiles/audio/player.c
@@ -1801,11 +1801,11 @@ static struct media_item *media_folder_create_item(struct media_player *mp,
item->player = mp;
item->uid = uid;
- if (uid > 0)
+ if (!uid && name[0] == '/')
+ item->path = g_strdup_printf("%s%s", mp->path, name);
+ else
item->path = g_strdup_printf("%s/item%" PRIu64 "",
folder->item->path, uid);
- else
- item->path = g_strdup_printf("%s%s", mp->path, name);
item->name = g_strdup(name);
item->type = type;