0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-19 19:42:24 +02:00

player/loadfile: don't clear watch later for auto playlist parent file

Fixes: https://github.com/mpv-player/mpv/pull/14555#issuecomment-2282338707
This commit is contained in:
Kacper Michajłow 2024-08-11 15:25:03 +02:00
parent ea01b042c2
commit 9978cb821d

View File

@ -1679,10 +1679,12 @@ static void play_current_file(struct MPContext *mpctx)
if (!mpctx->demuxer || mpctx->stop_play)
goto terminate_playback;
if (mpctx->demuxer->playlist) {
if (watch_later)
struct playlist *pl = mpctx->demuxer->playlist;
if (pl) {
// pl->playlist_dir indicates that the playlist was auto-created from
// the parent file. In this case, mpctx->filename points to real file.
if (watch_later && !pl->playlist_dir)
mp_delete_watch_later_conf(mpctx, mpctx->filename);
struct playlist *pl = mpctx->demuxer->playlist;
playlist_populate_playlist_path(pl, mpctx->filename);
if (infinite_playlist_loading_loop(mpctx, pl)) {
mpctx->stop_play = PT_STOP;