mxfdemux: Drop duplicate seek events
authorEdward Hervey <edward@centricular.com>
Tue, 29 Jun 2021 13:29:36 +0000 (15:29 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Wed, 21 Jul 2021 14:33:19 +0000 (14:33 +0000)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2371>

gst/mxf/mxfdemux.c

index c883a9e..a9fc44e 100644 (file)
@@ -3935,6 +3935,11 @@ gst_mxf_demux_seek_pull (GstMXFDemux * demux, GstEvent * event)
       &start_type, &start, &stop_type, &stop);
   seqnum = gst_event_get_seqnum (event);
 
+  if (seqnum == demux->seqnum) {
+    GST_DEBUG_OBJECT (demux, "Already handled requested seek");
+    return TRUE;
+  }
+
   if (format != GST_FORMAT_TIME)
     goto wrong_format;