mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 13:08:50 +02:00
deps/media-playback: Preload video when seeking paused
This commit is contained in:
parent
3691dc536d
commit
7a33167769
6
deps/media-playback/media-playback/media.c
vendored
6
deps/media-playback/media-playback/media.c
vendored
@ -461,8 +461,12 @@ static void seek_to(mp_media_t *m, int64_t pos)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m->has_video && m->is_local_file)
|
if (m->has_video && m->is_local_file) {
|
||||||
mp_decode_flush(&m->v);
|
mp_decode_flush(&m->v);
|
||||||
|
if (m->seek_next_ts && m->pause && m->v_preload_cb &&
|
||||||
|
mp_media_prepare_frames(m))
|
||||||
|
mp_media_next_video(m, true);
|
||||||
|
}
|
||||||
if (m->has_audio && m->is_local_file)
|
if (m->has_audio && m->is_local_file)
|
||||||
mp_decode_flush(&m->a);
|
mp_decode_flush(&m->a);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user