when the current directory isn't the playlist directory.
Unified · Split
| @@ -446,7 +446,7 @@ void playlist_set_current(struct playlist *pl) · 445 unmodified lines | ||
| 446 | 446 | continue; |
| 447 | 447 | char *path = pl->entries[i]->playlist_path; |
| 448 | 448 | if (path[0] != '.') |
| 449 | − path = mp_path_join(NULL, pl->playlist_dir, pl->entries[i]->playlist_path); | |
| 449 | + path = mp_path_join(NULL, pl->playlist_dir, mp_basename(pl->entries[i]->playlist_path)); | |
| 450 | 450 | bool same = !strcmp(pl->entries[i]->filename, path); |
| 451 | 451 | if (path != pl->entries[i]->playlist_path) |
| 452 | 452 | talloc_free(path); |