summaryrefslogtreecommitdiff
path: root/sys/dxr3/dxr3videosink.c
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2012-03-28 12:49:54 +0200
committerWim Taymans <wim.taymans@collabora.co.uk>2012-03-28 12:53:09 +0200
commita9ec4d62a89dd53aa295af02c7d5f57ef936359b (patch)
tree6a11de050ed6d983485a13519738289bb9231aa1 /sys/dxr3/dxr3videosink.c
parent3963204e34e8a1722bdea11e36df72ec94f0afe3 (diff)
downloadgstreamer-plugins-bad-a9ec4d62a89dd53aa295af02c7d5f57ef936359b.tar.gz
update for buffer changes
Diffstat (limited to 'sys/dxr3/dxr3videosink.c')
-rw-r--r--sys/dxr3/dxr3videosink.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/dxr3/dxr3videosink.c b/sys/dxr3/dxr3videosink.c
index 1c69295ab..9ee27b4e1 100644
--- a/sys/dxr3/dxr3videosink.c
+++ b/sys/dxr3/dxr3videosink.c
@@ -599,7 +599,6 @@ dxr3videosink_chain (GstPad * pad, GstData * _data)
{
GstBuffer *buf = GST_BUFFER (_data);
Dxr3VideoSink *sink;
- GstBuffer *merged;
g_return_if_fail (pad != NULL);
g_return_if_fail (GST_IS_PAD (pad));
@@ -617,10 +616,7 @@ dxr3videosink_chain (GstPad * pad, GstData * _data)
if (sink->cur_buf == NULL) {
sink->cur_buf = buf;
} else {
- merged = gst_buffer_merge (sink->cur_buf, buf);
- gst_buffer_unref (sink->cur_buf);
- gst_buffer_unref (buf);
- sink->cur_buf = merged;
+ sink->cur_buf = gst_buffer_append (sink->cur_buf, buf);
}
sink->last_ts = GST_BUFFER_TIMESTAMP (buf);