rtpjitterbuffer: Constify timer pointers where possible

This helps understanding which function modify the Timerdata
and which one does not. This is not always obvious from thelper
name considering recalculate_timer() does not.
This commit is contained in:
Nicolas Dufresne 2019-06-06 13:09:29 -04:00
parent 5c8d8723d2
commit 9b706b6220

View file

@ -516,7 +516,7 @@ static GstStructure *gst_rtp_jitter_buffer_create_stats (GstRtpJitterBuffer *
jitterbuffer);
static void update_rtx_stats (GstRtpJitterBuffer * jitterbuffer,
TimerData * timer, GstClockTime dts, gboolean success);
const TimerData * timer, GstClockTime dts, gboolean success);
static TimerQueue *timer_queue_new (void);
static void timer_queue_free (TimerQueue * queue);
@ -2127,7 +2127,7 @@ unschedule_current_timer (GstRtpJitterBuffer * jitterbuffer)
}
static GstClockTime
get_timeout (GstRtpJitterBuffer * jitterbuffer, TimerData * timer)
get_timeout (GstRtpJitterBuffer * jitterbuffer, const TimerData * timer)
{
GstRtpJitterBufferPrivate *priv = jitterbuffer->priv;
GstClockTime test_timeout;
@ -2144,7 +2144,7 @@ get_timeout (GstRtpJitterBuffer * jitterbuffer, TimerData * timer)
}
static void
recalculate_timer (GstRtpJitterBuffer * jitterbuffer, TimerData * timer)
recalculate_timer (GstRtpJitterBuffer * jitterbuffer, const TimerData * timer)
{
GstRtpJitterBufferPrivate *priv = jitterbuffer->priv;
@ -3792,7 +3792,7 @@ update_avg_rtx_rtt (GstRtpJitterBufferPrivate * priv, GstClockTime rtt)
}
static void
update_rtx_stats (GstRtpJitterBuffer * jitterbuffer, TimerData * timer,
update_rtx_stats (GstRtpJitterBuffer * jitterbuffer, const TimerData * timer,
GstClockTime dts, gboolean success)
{
GstRtpJitterBufferPrivate *priv = jitterbuffer->priv;