projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52a5658
)
rtpstats: fix assertion 'denom > 0' failed
author
Julien Isorce
<jisorce@oblong.com>
Tue, 27 Jun 2017 14:59:18 +0000
(15:59 +0100)
committer
Nicolas Dufresne
<nicolas.dufresne@collabora.com>
Thu, 29 Jun 2017 19:58:44 +0000
(15:58 -0400)
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
https://bugzilla.gnome.org/show_bug.cgi?id=784250
gst/rtpmanager/rtpstats.h
patch
|
blob
|
history
diff --git
a/gst/rtpmanager/rtpstats.h
b/gst/rtpmanager/rtpstats.h
index
a7803b5
..
eb164de
100644
(file)
--- a/
gst/rtpmanager/rtpstats.h
+++ b/
gst/rtpmanager/rtpstats.h
@@
-207,7
+207,7
@@
typedef struct {
*/
typedef struct {
gboolean probed;
- g
uint32
clock_rate;
+ g
int
clock_rate;
guint16 last_seqnum;
guint64 last_ts;
guint32 avg_packet_rate;