diff options
author | wm4 <wm4@nowhere> | 2019-06-30 20:27:36 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-09-19 20:37:05 +0200 |
commit | 739cd99881b825c3c0df423442d44282b2aadc12 (patch) | |
tree | 16e643a1af4727e4118506de5bf8e09a4c51d749 /demux | |
parent | b945952e0da1b476ce347932a151d9c01a15e742 (diff) | |
download | mpv-739cd99881b825c3c0df423442d44282b2aadc12.tar.bz2 mpv-739cd99881b825c3c0df423442d44282b2aadc12.tar.xz |
demux: honor seek discontinuities with --stream-record
Do the same thing --record-file does when seeks happen.
Diffstat (limited to 'demux')
-rw-r--r-- | demux/demux.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/demux/demux.c b/demux/demux.c index d3bea4b841..9b8e62dc26 100644 --- a/demux/demux.c +++ b/demux/demux.c @@ -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); |