mirror of
https://github.com/mpv-player/mpv
synced 2025-02-18 13:47:04 +00: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:
parent
391c087d75
commit
e68fcbfa39
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user