mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-28 23:13:18 +08:00
player: fix quvi 0.9 playlist loading
The code made no sense at all. Conflicts: mpvcore/player/loadfile.c
This commit is contained in:
+3
-2
@@ -4355,8 +4355,9 @@ static void stream_dump(struct MPContext *mpctx)
|
||||
// from the given playlist pl, so the entries don't actually need to be copied.
|
||||
static void transfer_playlist(struct MPContext *mpctx, struct playlist *pl)
|
||||
{
|
||||
if (mpctx->demuxer->playlist->first) {
|
||||
playlist_transfer_entries(mpctx->playlist, mpctx->demuxer->playlist);
|
||||
if (pl->first) {
|
||||
playlist_transfer_entries(mpctx->playlist, pl);
|
||||
// current entry is replaced
|
||||
if (mpctx->playlist->current)
|
||||
playlist_remove(mpctx->playlist, mpctx->playlist->current);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user