From f65b61fd531283b5eb921aeb692dc9bd001cbf48 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Mon, 28 Mar 2022 19:42:04 +1100 Subject: [PATCH] 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: --- subprojects/gst-plugins-bad/gst/speed/gstspeed.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/subprojects/gst-plugins-bad/gst/speed/gstspeed.c b/subprojects/gst-plugins-bad/gst/speed/gstspeed.c index 6a536a20e0..a0c3f0ff39 100644 --- a/subprojects/gst-plugins-bad/gst/speed/gstspeed.c +++ b/subprojects/gst-plugins-bad/gst/speed/gstspeed.c @@ -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;