demux: honor seek discontinuities with --stream-record

Do the same thing --record-file does when seeks happen.
This commit is contained in:
wm4 2019-06-30 20:27:36 +02:00
parent b945952e0d
commit 739cd99881
1 changed files with 3 additions and 0 deletions

View File

@ -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);