mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
splitmuxsrc: Ignore duplicate seeks
Use the seqnum to ignore duplicated seek events.
This commit is contained in:
parent
18a7c10d4e
commit
26d6532702
1 changed files with 7 additions and 0 deletions
|
@ -1319,6 +1319,12 @@ splitmux_src_pad_event (GstPad * pad, GstObject * parent, GstEvent * event)
|
|||
SPLITMUX_SRC_UNLOCK (splitmux);
|
||||
goto error;
|
||||
}
|
||||
if (splitmux->segment_seqnum == seqnum) {
|
||||
GST_DEBUG_OBJECT (splitmux, "Ignoring duplicate seek event");
|
||||
SPLITMUX_SRC_UNLOCK (splitmux);
|
||||
ret = TRUE;
|
||||
goto done;
|
||||
}
|
||||
|
||||
gst_segment_copy_into (&splitmux->play_segment, &tmp);
|
||||
|
||||
|
@ -1394,6 +1400,7 @@ splitmux_src_pad_event (GstPad * pad, GstObject * parent, GstEvent * event)
|
|||
break;
|
||||
}
|
||||
|
||||
done:
|
||||
gst_event_unref (event);
|
||||
error:
|
||||
return ret;
|
||||
|
|
Loading…
Reference in a new issue