[0.10] gst-plugins-good: matroska-demux: remove redundant variable

Tim Müller tpm at kemper.freedesktop.org
Mon Jan 23 15:41:00 PST 2012


Module: gst-plugins-good
Branch: 0.10
Commit: 886e72ddb2887e36613a791e91dac9c7787e4332
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=886e72ddb2887e36613a791e91dac9c7787e4332

Author: Mark Nauwelaerts <mark.nauwelaerts at collabora.co.uk>
Date:   Fri Jan 20 16:58:28 2012 +0100

matroska-demux: remove redundant variable

---

 gst/matroska/matroska-demux.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/gst/matroska/matroska-demux.c b/gst/matroska/matroska-demux.c
index e80febc..c30e0d0 100644
--- a/gst/matroska/matroska-demux.c
+++ b/gst/matroska/matroska-demux.c
@@ -1721,7 +1721,6 @@ gst_matroska_demux_search_pos (GstMatroskaDemux * demux, GstClockTime time)
   gint64 opos, newpos, startpos = 0, current_offset;
   gint64 prev_cluster_offset = -1, current_cluster_offset, cluster_offset;
   const guint chunk = 64 * 1024;
-  GstBuffer *buf = NULL;
   GstFlowReturn ret;
   guint64 length;
   guint32 id;
@@ -1886,8 +1885,6 @@ retry:
       ", pos %" G_GUINT64_FORMAT, GST_TIME_ARGS (entry->time), entry->pos);
 
 exit:
-  if (buf)
-    gst_buffer_unref (buf);
 
   /* restore some state */
   demux->cluster_offset = current_cluster_offset;



More information about the gstreamer-commits mailing list