summaryrefslogtreecommitdiff
path: root/gst/gdp
diff options
context:
space:
mode:
authorThiago Santos <ts.santos@sisa.samsung.com>2014-01-30 18:09:13 -0300
committerThiago Santos <ts.santos@sisa.samsung.com>2014-01-30 18:18:18 -0300
commite909e6a071eeb9123e8043227071e8cb67f126f9 (patch)
tree79c51abf33e80ac7bbe3f9d5ea5b21d12d5f11d3 /gst/gdp
parent9682e44db649cd0a993ac18e25bb6173262e5939 (diff)
downloadgstreamer-plugins-bad-e909e6a071eeb9123e8043227071e8cb67f126f9.tar.gz
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
Diffstat (limited to 'gst/gdp')
-rw-r--r--gst/gdp/gstgdppay.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gst/gdp/gstgdppay.c b/gst/gdp/gstgdppay.c
index 8e92c4cca..4464495b1 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));
}