mirror of
https://github.com/mpv-player/mpv.git
synced 2024-09-20 03:52:22 +02:00
demux: honor seek discontinuities with --stream-record
Do the same thing --record-file does when seeks happen.
This commit is contained in:
parent
b945952e0d
commit
739cd99881
@ -2320,6 +2320,9 @@ static void execute_seek(struct demux_internal *in)
|
||||
!(flags & (SEEK_FORWARD | SEEK_FACTOR)) &&
|
||||
pts <= in->d_thread->start_time;
|
||||
|
||||
if (in->recorder)
|
||||
mp_recorder_mark_discontinuity(in->recorder);
|
||||
|
||||
pthread_mutex_unlock(&in->lock);
|
||||
|
||||
MP_VERBOSE(in, "execute seek (to %f flags %d)\n", pts, flags);
|
||||
|
Loading…
Reference in New Issue
Block a user