projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1871a60
)
gdppay: Don't repeat tags buffers for every new segment
author
Jan Schmidt
<thaytan@noraisin.net>
Tue, 22 Sep 2009 10:58:26 +0000
(11:58 +0100)
committer
Jan Schmidt
<thaytan@noraisin.net>
Tue, 6 Oct 2009 19:37:42 +0000
(20:37 +0100)
Only send a tag buffer when one is received, not after every new segment
event/update.
gst/gdp/gstgdppay.c
patch
|
blob
|
history
diff --git
a/gst/gdp/gstgdppay.c
b/gst/gdp/gstgdppay.c
index
dc487d8
..
f447dee
100644
(file)
--- 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 c
opy of tag
buffer %p",
+ GST_DEBUG_OBJECT (this, "1.0, appending c
urrent 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);