mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
gdppay: set caps on outgoing buffers
Set caps on outgoing buffers because NULL caps confuse basetransform. Fixes #583867
This commit is contained in:
parent
f2cf891385
commit
e56bf3929e
1 changed files with 2 additions and 0 deletions
|
@ -486,6 +486,7 @@ gst_gdp_pay_reset_streamheader (GstGDPPay * this)
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
if (this->tag_buf) {
|
if (this->tag_buf) {
|
||||||
|
gst_buffer_set_caps (this->tag_buf, caps);
|
||||||
GST_DEBUG_OBJECT (this, "Pushing GDP tag buffer %p", this->tag_buf);
|
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 */
|
/* 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));
|
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) {
|
if (this->sent_streamheader) {
|
||||||
GST_LOG_OBJECT (this, "Pushing GDP buffer %p, caps %" GST_PTR_FORMAT,
|
GST_LOG_OBJECT (this, "Pushing GDP buffer %p, caps %" GST_PTR_FORMAT,
|
||||||
buffer, this->caps);
|
buffer, this->caps);
|
||||||
|
gst_buffer_set_caps (buffer, GST_PAD_CAPS (this->srcpad));
|
||||||
return gst_pad_push (this->srcpad, buffer);
|
return gst_pad_push (this->srcpad, buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue