diff options
author | Havard Graff <havard.graff@tandberg.com> | 2009-08-31 18:46:25 +0200 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2009-09-08 13:44:49 +0200 |
commit | a52309eff78fdfbb9c913461d0e12eaee596c35f (patch) | |
tree | f8b85470c8a91120ded5e364b74b6ad0afa81f1d /gst | |
parent | 40549278c31c601164ab29c28afbb463db907942 (diff) |
jitterbuffer: change severity of clock-rate change debug
Make log GST_DEBUG under normal circumstances, GST_WARNING otherwise.
Fixes #594253
Diffstat (limited to 'gst')
-rw-r--r-- | gst/rtpmanager/rtpjitterbuffer.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gst/rtpmanager/rtpjitterbuffer.c b/gst/rtpmanager/rtpjitterbuffer.c index 86629e87..e93b5509 100644 --- a/gst/rtpmanager/rtpjitterbuffer.c +++ b/gst/rtpmanager/rtpjitterbuffer.c @@ -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; |