summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Santos <thiagoss@osg.samsung.com>2015-06-19 18:01:03 -0300
committerThiago Santos <thiagoss@osg.samsung.com>2015-06-19 18:01:03 -0300
commit5a9cdfec432fa77cae50aebddbb80dbc766471b8 (patch)
treeda18b85be782b10544b63b15323a4ab6ffbed0b2
parentcbc47cdc543fc681aa378b2a973f4c1219046002 (diff)
splitmuxsrc: sticky events are sent automatically from the padsplitmuxsrc
No need to send them explicitly from the element
-rw-r--r--gst/multifile/gstsplitmuxsrc.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/gst/multifile/gstsplitmuxsrc.c b/gst/multifile/gstsplitmuxsrc.c
index 3bbbdfa7b..e1af8f3f5 100644
--- a/gst/multifile/gstsplitmuxsrc.c
+++ b/gst/multifile/gstsplitmuxsrc.c
@@ -340,23 +340,6 @@ gst_splitmux_part_create (GstSplitMuxSrc * splitmux, char *filename)
}
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
gst_splitmux_check_new_caps (SplitMuxSrcPad * splitpad, GstEvent * event)
{
GstCaps *curcaps = gst_pad_get_current_caps ((GstPad *) (splitpad));
@@ -473,13 +456,6 @@ gst_splitmux_handle_event (GstSplitMuxSrc * splitmux,
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);
return;
drop_event: