speed: fix unused-but-set warning

../gst/speed/gstspeed.c:523:39: error: variable 'base' set but not used [-Werror,-Wunused-but-set-variable]
      gint64 start_value, stop_value, base;
                                      ^

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2046>
This commit is contained in:
Matthew Waters 2022-03-28 19:42:04 +11:00 committed by GStreamer Marge Bot
parent fc28db57ae
commit f65b61fd53

View file

@ -520,7 +520,7 @@ speed_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
case GST_EVENT_SEGMENT:{
gdouble rate;
GstFormat format;
gint64 start_value, stop_value, base;
gint64 start_value, stop_value;
const GstSegment *segment;
GstSegment seg;
@ -530,7 +530,6 @@ speed_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
format = segment->format;
start_value = segment->start;
stop_value = segment->stop;
base = segment->base;
gst_event_unref (event);
@ -545,7 +544,6 @@ speed_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
start_value /= filter->speed;
if (stop_value >= 0)
stop_value /= filter->speed;
base /= filter->speed;
/* this would only really be correct if we clipped incoming data */
filter->timestamp = start_value;