From e66f5e2423fef09bfe03dc8f757287a83cb3371b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 2 Sep 2022 12:20:30 +0300 Subject: [PATCH] rtpjitterbuffer: Don't shadow variable While this didn't cause any problems in this context it is simply confusing. Part-of: --- .../gst-plugins-good/gst/rtpmanager/gstrtpjitterbuffer.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/subprojects/gst-plugins-good/gst/rtpmanager/gstrtpjitterbuffer.c b/subprojects/gst-plugins-good/gst/rtpmanager/gstrtpjitterbuffer.c index d82b32f..1770781 100644 --- a/subprojects/gst-plugins-good/gst/rtpmanager/gstrtpjitterbuffer.c +++ b/subprojects/gst-plugins-good/gst/rtpmanager/gstrtpjitterbuffer.c @@ -3408,12 +3408,12 @@ gst_rtp_jitter_buffer_chain (GstPad * pad, GstObject * parent, * sequence number, let's allow at least 10k packets in any case. */ while (rtp_jitter_buffer_is_full (priv->jbuf) && priv->srcresult == GST_FLOW_OK) { - RtpTimer *timer = rtp_timer_queue_peek_earliest (priv->timers); - while (timer) { - timer->timeout = -1; - if (timer->type == RTP_TIMER_DEADLINE) + RtpTimer *earliest_timer = rtp_timer_queue_peek_earliest (priv->timers); + while (earliest_timer) { + earliest_timer->timeout = -1; + if (earliest_timer->type == RTP_TIMER_DEADLINE) break; - timer = rtp_timer_get_next (timer); + earliest_timer = rtp_timer_get_next (earliest_timer); } update_current_timer (jitterbuffer); -- 2.7.4