mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
ghostpad: Do not try to be smarter than possible with seqnum
We can have several CAPS event comming at any time and thuse we will need to rely on elements to handle their seqnum properly as we can not do a safe guard at our level Co-Authored by: Mathieu Duponchelle <mathieu.duponchelle@opencreed.com>
This commit is contained in:
parent
c256fd1486
commit
d038e53db8
1 changed files with 3 additions and 15 deletions
|
@ -334,23 +334,11 @@ internalpad_event_function (GstPad * internal, GstObject * parent,
|
||||||
GST_DEBUG_OBJECT (object, "Setting wanted_seqnum to %i",
|
GST_DEBUG_OBJECT (object, "Setting wanted_seqnum to %i",
|
||||||
object->wanted_seqnum);
|
object->wanted_seqnum);
|
||||||
break;
|
break;
|
||||||
case GST_EVENT_CAPS:
|
|
||||||
if (object->wanted_seqnum != 0) {
|
|
||||||
|
|
||||||
GST_ERROR_OBJECT (object, "Got caps, seqnum-> %i (wanted %i)",
|
|
||||||
gst_event_get_seqnum (event), object->wanted_seqnum);
|
|
||||||
|
|
||||||
object->seqnum = object->wanted_seqnum;
|
|
||||||
object->wanted_seqnum = 0;
|
|
||||||
gst_event_set_seqnum (event, object->seqnum);
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case GST_EVENT_SEGMENT:
|
case GST_EVENT_SEGMENT:
|
||||||
event = translate_outgoing_segment (object, event);
|
event = translate_outgoing_segment (object, event);
|
||||||
if (object->seqnum) {
|
if (object->wanted_seqnum == gst_event_get_seqnum (event)) {
|
||||||
GST_INFO_OBJECT (object, "Tweaking SEGMENT seqnum from %i to %i",
|
object->seqnum = object->wanted_seqnum;
|
||||||
gst_event_get_seqnum (event), object->seqnum);
|
object->wanted_seqnum = 0;
|
||||||
gst_event_set_seqnum (event, object->seqnum);
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case GST_EVENT_EOS:
|
case GST_EVENT_EOS:
|
||||||
|
|
Loading…
Reference in a new issue