mirror of https://github.com/mpv-player/mpv
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