mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-29 19:50:40 +00:00
jitterbuffer: change severity of clock-rate change debug
Make log GST_DEBUG under normal circumstances, GST_WARNING otherwise. Fixes #594253
This commit is contained in:
parent
40549278c3
commit
a52309eff7
1 changed files with 7 additions and 1 deletions
|
@ -213,8 +213,14 @@ calculate_skew (RTPJitterBuffer * jbuf, guint32 rtptime, GstClockTime time,
|
|||
jbuf->last_rtptime = ext_rtptime;
|
||||
|
||||
if (jbuf->clock_rate != clock_rate) {
|
||||
GST_WARNING ("Clock rate changed from %" G_GUINT32_FORMAT " to %"
|
||||
if (jbuf->clock_rate == -1) {
|
||||
GST_DEBUG ("Clock rate changed from %" G_GUINT32_FORMAT " to %"
|
||||
G_GUINT32_FORMAT, jbuf->clock_rate, clock_rate);
|
||||
}
|
||||
else {
|
||||
GST_WARNING ("Clock rate changed from %" G_GUINT32_FORMAT " to %"
|
||||
G_GUINT32_FORMAT, jbuf->clock_rate, clock_rate);
|
||||
}
|
||||
jbuf->base_time = -1;
|
||||
jbuf->base_rtptime = -1;
|
||||
jbuf->clock_rate = clock_rate;
|
||||
|
|
Loading…
Reference in a new issue