summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2009-05-27 12:10:05 +0200
committerWim Taymans <wim.taymans@collabora.co.uk>2009-05-27 12:10:05 +0200
commit4fad9390539a4d0544dd953481182b6b7dbefe77 (patch)
tree82b260c9db8ca73e4c7c69f91fc99a5502bd37c8
parentdcc42d5f92bfe0a9d2c849baaf3b2cd3476f05fa (diff)
gdppay: set caps on outgoing buffers
Set caps on outgoing buffers because NULL caps confuse basetransform. Fixes #583867
-rw-r--r--gst/gdp/gstgdppay.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/gdp/gstgdppay.c b/gst/gdp/gstgdppay.c
index 99509e8fc..8dae446cb 100644
--- a/gst/gdp/gstgdppay.c
+++ b/gst/gdp/gstgdppay.c
@@ -486,6 +486,7 @@ gst_gdp_pay_reset_streamheader (GstGDPPay * this)
goto done;
}
if (this->tag_buf) {
+ gst_buffer_set_caps (this->tag_buf, caps);
GST_DEBUG_OBJECT (this, "Pushing GDP tag buffer %p", this->tag_buf);
/* we stored these bufs with refcount 1, so make sure we keep a ref */
r = gst_pad_push (this->srcpad, gst_buffer_ref (this->tag_buf));
@@ -543,6 +544,7 @@ gst_gdp_queue_buffer (GstGDPPay * this, GstBuffer * buffer)
if (this->sent_streamheader) {
GST_LOG_OBJECT (this, "Pushing GDP buffer %p, caps %" GST_PTR_FORMAT,
buffer, this->caps);
+ gst_buffer_set_caps (buffer, GST_PAD_CAPS (this->srcpad));
return gst_pad_push (this->srcpad, buffer);
}