summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Schmidt <thaytan@noraisin.net>2009-09-22 11:58:26 +0100
committerJan Schmidt <thaytan@noraisin.net>2009-10-06 20:37:42 +0100
commit850c95178d2b1965431f8dca8cdb76d02c1bbbbc (patch)
tree809790923dbd7241900f6014db609951788671aa
parent1871a6025d5d2ba583fb6eeacb7748246cb81a50 (diff)
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.
-rw-r--r--gst/gdp/gstgdppay.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gst/gdp/gstgdppay.c b/gst/gdp/gstgdppay.c
index dc487d88d..f447deec8 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);