mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-13 10:55:34 +00:00
gnlghostpad: Add some more debugging and fix mistakes in seqnum handling
Co-Authored by: Thibault Saunier <tsaunier@gnome.org>
This commit is contained in:
parent
b28c506121
commit
39a915883e
1 changed files with 12 additions and 4 deletions
|
@ -300,7 +300,9 @@ translate_incoming_segment (GnlObject * object, GstEvent * event)
|
|||
gst_event_unref (event);
|
||||
|
||||
if (object->seqnum) {
|
||||
gst_event_set_seqnum (event, object->seqnum);
|
||||
GST_INFO_OBJECT (object, "Tweaking SEGMENT seqnum from %i to %i",
|
||||
gst_event_get_seqnum (event2), object->seqnum);
|
||||
gst_event_set_seqnum (event2, object->seqnum);
|
||||
}
|
||||
|
||||
return event2;
|
||||
|
@ -346,12 +348,18 @@ internalpad_event_function (GstPad * internal, GstObject * parent,
|
|||
object->wanted_seqnum = 0;
|
||||
|
||||
event = translate_outgoing_segment (object, event);
|
||||
gst_event_set_seqnum (event, object->seqnum);
|
||||
if (object->seqnum) {
|
||||
GST_INFO_OBJECT (object, "Tweaking SEGMENT seqnum from %i to %i",
|
||||
gst_event_get_seqnum (event), object->seqnum);
|
||||
gst_event_set_seqnum (event, object->seqnum);
|
||||
}
|
||||
break;
|
||||
case GST_EVENT_EOS:
|
||||
if (object->seqnum)
|
||||
if (object->seqnum) {
|
||||
GST_INFO_OBJECT (object, "Tweaking EOS seqnum from %i to %i",
|
||||
gst_event_get_seqnum (event), object->seqnum);
|
||||
gst_event_set_seqnum (event, object->seqnum);
|
||||
GST_INFO_OBJECT (object, "Tweaking seqnum to %i", object->seqnum);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue