mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 06:58:56 +00:00
splitmuxsrc: sticky events are sent automatically from the pad
No need to send them explicitly from the element https://bugzilla.gnome.org/show_bug.cgi?id=751240
This commit is contained in:
parent
af6a09ae4c
commit
121fcbf7da
1 changed files with 0 additions and 24 deletions
|
@ -339,23 +339,6 @@ gst_splitmux_part_create (GstSplitMuxSrc * splitmux, char *filename)
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
|
||||||
resend_sticky (GstPad * pad, GstEvent ** event, GstPad * target)
|
|
||||||
{
|
|
||||||
switch (GST_EVENT_TYPE (*event)) {
|
|
||||||
case GST_EVENT_CAPS:
|
|
||||||
if (!gst_splitmux_check_new_caps (SPLITMUX_SRC_PAD (target), *event))
|
|
||||||
return TRUE;
|
|
||||||
return gst_pad_push_event (target, gst_event_ref (*event));
|
|
||||||
case GST_EVENT_STREAM_START:
|
|
||||||
return gst_pad_push_event (target, gst_event_ref (*event));
|
|
||||||
default:
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
gst_splitmux_check_new_caps (SplitMuxSrcPad * splitpad, GstEvent * event)
|
gst_splitmux_check_new_caps (SplitMuxSrcPad * splitpad, GstEvent * event)
|
||||||
{
|
{
|
||||||
|
@ -473,13 +456,6 @@ gst_splitmux_handle_event (GstSplitMuxSrc * splitmux,
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Make sure to send sticky events - from the part_pad directly */
|
|
||||||
if (splitpad->sent_caps == FALSE || splitpad->sent_stream_start == FALSE) {
|
|
||||||
gst_pad_sticky_events_foreach (GST_PAD_CAST (part_pad),
|
|
||||||
(GstPadStickyEventsForeachFunction) (resend_sticky), splitpad);
|
|
||||||
splitpad->sent_caps = splitpad->sent_stream_start = TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
gst_pad_push_event ((GstPad *) (splitpad), event);
|
gst_pad_push_event ((GstPad *) (splitpad), event);
|
||||||
return;
|
return;
|
||||||
drop_event:
|
drop_event:
|
||||||
|
|
Loading…
Reference in a new issue