summaryrefslogtreecommitdiffstats
path: root/ext/faad
diff options
context:
space:
mode:
authorThomas Vander Stichele <thomas@apestaart.org>2005-02-11 16:38:14 +0000
committerThomas Vander Stichele <thomas@apestaart.org>2005-02-11 16:38:14 +0000
commit7565ce2d0df937391a4b340bf7c22e47928adf04 (patch)
tree4f37f4c97fe4e543e3accb47030cab4467694a53 /ext/faad
parent4a1a8872625b855d6bf909e1c493625c1ee78c00 (diff)
downloadgst-plugins-bad-7565ce2d0df937391a4b340bf7c22e47928adf04.tar.gz
gst-plugins-bad-7565ce2d0df937391a4b340bf7c22e47928adf04.tar.bz2
gst-plugins-bad-7565ce2d0df937391a4b340bf7c22e47928adf04.zip
remove buffer_join
Original commit message from CVS: remove buffer_join
Diffstat (limited to 'ext/faad')
-rw-r--r--ext/faad/gstfaad.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/ext/faad/gstfaad.c b/ext/faad/gstfaad.c
index c5b900cf..6fc19d98 100644
--- a/ext/faad/gstfaad.c
+++ b/ext/faad/gstfaad.c
@@ -571,8 +571,13 @@ gst_faad_chain (GstPad * pad, GstData * data)
buf = GST_BUFFER (data);
next_ts = GST_BUFFER_TIMESTAMP (buf);
if (faad->tempbuf) {
- buf = gst_buffer_join (faad->tempbuf, buf);
+ GstBuffer *new = NULL;
+
+ new = gst_buffer_join (faad->tempbuf, buf);
+ gst_buffer_unref (faad->tempbuf);
faad->tempbuf = NULL;
+ gst_buffer_unref (buf);
+ buf = new;
}
/* init if not already done during capsnego */