summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorLuis de Bethencourt <luis.bg@samsung.com>2015-01-26 13:46:44 +0000
committerLuis de Bethencourt <luis.bg@samsung.com>2015-01-26 13:46:44 +0000
commit2b99c2c579fee1e2a11ce91510eace6dd4604d53 (patch)
treecca15f267908435f3715c9f76e876db466cfb052 /gst
parentd48e57538dc2b1b9eb89aa66cf1c924e45cc286f (diff)
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.
Diffstat (limited to 'gst')
-rw-r--r--gst/aiff/aiffparse.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gst/aiff/aiffparse.c b/gst/aiff/aiffparse.c
index 6bae23a60..78854ae74 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,