projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d48e575
)
aiffparse: remove unnecessary variable
author
Luis de Bethencourt
<luis.bg@samsung.com>
Mon, 26 Jan 2015 13:46:44 +0000
(13:46 +0000)
committer
Luis de Bethencourt
<luis.bg@samsung.com>
Mon, 26 Jan 2015 13:46:44 +0000
(13:46 +0000)
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
patch
|
blob
|
history
diff --git
a/gst/aiff/aiffparse.c
b/gst/aiff/aiffparse.c
index 6bae23a6081ad8c6bc2eccc454808af30ec3ed62..78854ae741e5eb4337e19ae85af3c2b3061ba7e1 100644
(file)
--- 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,