mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
Bug 593035 - set IN_CAPS for streamheader buffer
This commit is contained in:
parent
2d691f140b
commit
04133c2d31
1 changed files with 17 additions and 0 deletions
|
@ -432,12 +432,29 @@ gst_gdp_pay_reset_streamheader (GstGDPPay * this)
|
||||||
|
|
||||||
bufval = &g_array_index (buffers, GValue, i);
|
bufval = &g_array_index (buffers, GValue, i);
|
||||||
buffer = g_value_peek_pointer (bufval);
|
buffer = g_value_peek_pointer (bufval);
|
||||||
|
/* this buffer is deserialized by gdpdepay as a regular buffer,
|
||||||
|
it needs IN_CAPS, because it's a streamheader - otherwise it
|
||||||
|
is mixed with regular data buffers */
|
||||||
|
GST_BUFFER_FLAG_SET (buffer, GST_BUFFER_FLAG_IN_CAPS);
|
||||||
|
GST_BUFFER_OFFSET (buffer) = GST_BUFFER_OFFSET_NONE;
|
||||||
|
GST_BUFFER_OFFSET_END (buffer) = GST_BUFFER_OFFSET_NONE;
|
||||||
|
GST_BUFFER_TIMESTAMP (buffer) = GST_CLOCK_TIME_NONE;
|
||||||
|
|
||||||
outbuffer = gst_gdp_pay_buffer_from_buffer (this, buffer);
|
outbuffer = gst_gdp_pay_buffer_from_buffer (this, buffer);
|
||||||
if (!outbuffer) {
|
if (!outbuffer) {
|
||||||
g_value_unset (&array);
|
g_value_unset (&array);
|
||||||
goto no_buffer;
|
goto no_buffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Setting IN_CAPS as other GDP event buffers */
|
||||||
|
GST_DEBUG_OBJECT (this,
|
||||||
|
"Setting IN_CAPS flag on outgoing buffer %" GST_PTR_FORMAT,
|
||||||
|
outbuffer);
|
||||||
|
GST_BUFFER_FLAG_SET (outbuffer, GST_BUFFER_FLAG_IN_CAPS);
|
||||||
|
GST_BUFFER_OFFSET (outbuffer) = GST_BUFFER_OFFSET_NONE;
|
||||||
|
GST_BUFFER_OFFSET_END (outbuffer) = GST_BUFFER_OFFSET_NONE;
|
||||||
|
GST_BUFFER_TIMESTAMP (outbuffer) = GST_CLOCK_TIME_NONE;
|
||||||
|
|
||||||
g_value_init (&value, GST_TYPE_BUFFER);
|
g_value_init (&value, GST_TYPE_BUFFER);
|
||||||
gst_value_set_buffer (&value, outbuffer);
|
gst_value_set_buffer (&value, outbuffer);
|
||||||
gst_value_array_append_value (&array, &value);
|
gst_value_array_append_value (&array, &value);
|
||||||
|
|
Loading…
Reference in a new issue