From 48734bd522bacadd9692996f3afaea8f41133538 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Sat, 10 Aug 2013 19:43:41 +0100 Subject: [PATCH] aiffparse: don't unref NULL buffer --- gst/aiff/aiffparse.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/gst/aiff/aiffparse.c b/gst/aiff/aiffparse.c index 0a997d8329..bef1f5681f 100644 --- a/gst/aiff/aiffparse.c +++ b/gst/aiff/aiffparse.c @@ -575,8 +575,7 @@ gst_aiff_parse_calculate_duration (GstAiffParse * aiff) } static void -gst_aiff_parse_ignore_chunk (GstAiffParse * aiff, GstBuffer * buf, guint32 tag, - guint32 size) +gst_aiff_parse_ignore_chunk (GstAiffParse * aiff, guint32 tag, guint32 size) { guint flush; @@ -590,8 +589,6 @@ gst_aiff_parse_ignore_chunk (GstAiffParse * aiff, GstBuffer * buf, guint32 tag, aiff->offset += flush; if (aiff->streaming) { gst_adapter_flush (aiff->adapter, flush); - } else { - gst_buffer_unref (buf); } } @@ -981,7 +978,7 @@ gst_aiff_parse_stream_headers (GstAiffParse * aiff) break; } default: - gst_aiff_parse_ignore_chunk (aiff, buf, tag, size); + gst_aiff_parse_ignore_chunk (aiff, tag, size); } buf = NULL;