Commit c9465db1 authored by Julien Isorce's avatar Julien Isorce

rtpstats: fix assertion 'denom > 0' failed

gst_util_uint64_scale_int takes a gint as denom parameter
whereas ctx->clock_rate is a guint32.

It happens when gst_rtp_packet_rate_ctx_reset set clock_rate
to -1.

So just define clock_rate as gint like it is done in rtpsource.h
parent c90b99b7
......@@ -207,7 +207,7 @@ typedef struct {
typedef struct {
gboolean probed;
guint32 clock_rate;
gint clock_rate;
guint16 last_seqnum;
guint64 last_ts;
guint32 avg_packet_rate;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment