From: Jan Schmidt Date: Tue, 22 Sep 2009 10:58:26 +0000 (+0100) Subject: gdppay: Don't repeat tags buffers for every new segment X-Git-Tag: 1.19.3~507^2~15078 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5a1492dc0b032c749976e8f3803cb90b70cc7c87;p=platform%2Fupstream%2Fgstreamer.git 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. --- diff --git a/gst/gdp/gstgdppay.c b/gst/gdp/gstgdppay.c index dc487d88d2..f447deec83 100644 --- a/gst/gdp/gstgdppay.c +++ b/gst/gdp/gstgdppay.c @@ -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);