mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 05:31:15 +00:00
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.
This commit is contained in:
parent
d48e57538d
commit
2b99c2c579
1 changed files with 1 additions and 3 deletions
|
@ -1823,10 +1823,8 @@ gst_aiff_parse_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
|
||||||
}
|
}
|
||||||
if (aiff->state == AIFF_PARSE_DATA &&
|
if (aiff->state == AIFF_PARSE_DATA &&
|
||||||
aiff->segment.format == GST_FORMAT_TIME) {
|
aiff->segment.format == GST_FORMAT_TIME) {
|
||||||
guint64 bps = aiff->bps;
|
|
||||||
|
|
||||||
/* operating in format TIME, so we can convert */
|
/* operating in format TIME, so we can convert */
|
||||||
if (bps) {
|
if (aiff->bps) {
|
||||||
if (start >= 0)
|
if (start >= 0)
|
||||||
start =
|
start =
|
||||||
gst_util_uint64_scale_ceil (start, GST_SECOND,
|
gst_util_uint64_scale_ceil (start, GST_SECOND,
|
||||||
|
|
Loading…
Reference in a new issue