summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-06-30 20:27:36 +0200
committerwm4 <wm4@nowhere>2019-09-19 20:37:05 +0200
commit739cd99881b825c3c0df423442d44282b2aadc12 (patch)
tree16e643a1af4727e4118506de5bf8e09a4c51d749
parentb945952e0da1b476ce347932a151d9c01a15e742 (diff)
downloadmpv-739cd99881b825c3c0df423442d44282b2aadc12.tar.bz2
mpv-739cd99881b825c3c0df423442d44282b2aadc12.tar.xz
demux: honor seek discontinuities with --stream-record
Do the same thing --record-file does when seeks happen.
-rw-r--r--demux/demux.c3
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);