mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
gdppay: Don't repeat tags buffers for every new segment
Only send a tag buffer when one is received, not after every new segment event/update.
This commit is contained in:
parent
04133c2d31
commit
5a1492dc0b
1 changed files with 4 additions and 2 deletions
|
@ -386,9 +386,11 @@ gst_gdp_pay_reset_streamheader (GstGDPPay * this)
|
|||
|
||||
if (this->tag_buf) {
|
||||
gst_gdp_stamp_buffer (this, this->tag_buf);
|
||||
GST_DEBUG_OBJECT (this, "1.0, appending copy of tag buffer %p",
|
||||
GST_DEBUG_OBJECT (this, "1.0, appending current tags buffer %p",
|
||||
this->tag_buf);
|
||||
tag_buf = gst_buffer_copy (this->tag_buf);
|
||||
tag_buf = this->tag_buf;
|
||||
this->tag_buf = NULL;
|
||||
|
||||
gst_buffer_set_caps (tag_buf, NULL);
|
||||
g_value_init (&value, GST_TYPE_BUFFER);
|
||||
gst_value_set_buffer (&value, tag_buf);
|
||||
|
|
Loading…
Reference in a new issue