From e909e6a071eeb9123e8043227071e8cb67f126f9 Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Thu, 30 Jan 2014 18:09:13 -0300 Subject: [PATCH] gdppay: push the stream-start event instead of just swallowing upstream's stream-start into its payload, push it as elements expect a stream-start before data --- gst/gdp/gstgdppay.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gst/gdp/gstgdppay.c b/gst/gdp/gstgdppay.c index 8e92c4cca4..4464495b1e 100644 --- a/gst/gdp/gstgdppay.c +++ b/gst/gdp/gstgdppay.c @@ -714,8 +714,9 @@ gst_gdp_pay_sink_event (GstPad * pad, GstObject * parent, GstEvent * event) } /* if we have EOS, we should send on EOS ourselves */ - if (GST_EVENT_TYPE (event) == GST_EVENT_EOS) { - GST_DEBUG_OBJECT (this, "Sending on EOS event %p", event); + if (GST_EVENT_TYPE (event) == GST_EVENT_EOS + || GST_EVENT_TYPE (event) == GST_EVENT_STREAM_START) { + GST_DEBUG_OBJECT (this, "Sending on event %" GST_PTR_FORMAT, event); /* ref, we unref later again */ ret = gst_pad_push_event (this->srcpad, gst_event_ref (event)); }