diff options
author | Thomas Vander Stichele <thomas@apestaart.org> | 2005-02-11 16:38:14 +0000 |
---|---|---|
committer | Thomas Vander Stichele <thomas@apestaart.org> | 2005-02-11 16:38:14 +0000 |
commit | 7565ce2d0df937391a4b340bf7c22e47928adf04 (patch) | |
tree | 4f37f4c97fe4e543e3accb47030cab4467694a53 /gst/cdxaparse/gstvcdparse.c | |
parent | 4a1a8872625b855d6bf909e1c493625c1ee78c00 (diff) | |
download | gst-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 'gst/cdxaparse/gstvcdparse.c')
-rw-r--r-- | gst/cdxaparse/gstvcdparse.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gst/cdxaparse/gstvcdparse.c b/gst/cdxaparse/gstvcdparse.c index 312c3028..240f971f 100644 --- a/gst/cdxaparse/gstvcdparse.c +++ b/gst/cdxaparse/gstvcdparse.c @@ -353,9 +353,14 @@ gst_cdxastrip_chain (GstPad * pad, GstData * data) buf = GST_BUFFER (data); if (cdxa->cache) { - buf = gst_buffer_join (cdxa->cache, buf); + GstBuffer *new = NULL; + + new = gst_buffer_join (cdxa->cache, buf); + gst_buffer_unref (cdxa->cache); + cdxa->cache = NULL; + gst_buffer_unref (buf); + buf = new; } - cdxa->cache = NULL; while (buf && GST_BUFFER_SIZE (buf) >= GST_CDXA_SECTOR_SIZE) { /* sync */ |