From 2b99c2c579fee1e2a11ce91510eace6dd4604d53 Mon Sep 17 00:00:00 2001 From: Luis de Bethencourt Date: Mon, 26 Jan 2015 13:46:44 +0000 Subject: [PATCH] aiffparse: remove unnecessary variable The bps variable is declared with value aiff->bps, read once and never written. aiff->bps can be used directly instead. --- gst/aiff/aiffparse.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gst/aiff/aiffparse.c b/gst/aiff/aiffparse.c index 6bae23a608..78854ae741 100644 --- a/gst/aiff/aiffparse.c +++ b/gst/aiff/aiffparse.c @@ -1823,10 +1823,8 @@ gst_aiff_parse_sink_event (GstPad * pad, GstObject * parent, GstEvent * event) } if (aiff->state == AIFF_PARSE_DATA && aiff->segment.format == GST_FORMAT_TIME) { - guint64 bps = aiff->bps; - /* operating in format TIME, so we can convert */ - if (bps) { + if (aiff->bps) { if (start >= 0) start = gst_util_uint64_scale_ceil (start, GST_SECOND,