summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Sauer <ensonic@users.sf.net>2014-10-04 17:17:13 +0200
committerStefan Sauer <ensonic@users.sf.net>2014-10-04 17:17:13 +0200
commit98222a67ffbe4a074d2c660c5f0f9c52f847c85a (patch)
tree7535d482f48a27bbe12ef03d4d93d76f165c605d
parentf35f3ccf7c9d659c070a636dbf62ce7d4127053b (diff)
rtpjitterbuffer: don't log all clock_rate changes as warnings.
We never initialize clock_rate explicitly, therefore it is 0 by default. The parameter is a uint32 and the only caller ensure that it is >0, therefore it won't become -1 ever.
-rw-r--r--gst/rtpmanager/rtpjitterbuffer.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/gst/rtpmanager/rtpjitterbuffer.c b/gst/rtpmanager/rtpjitterbuffer.c
index 19a1ef366..b668bb78b 100644
--- a/gst/rtpmanager/rtpjitterbuffer.c
+++ b/gst/rtpmanager/rtpjitterbuffer.c
@@ -170,6 +170,7 @@ rtp_jitter_buffer_set_delay (RTPJitterBuffer * jbuf, GstClockTime delay)
/**
* rtp_jitter_buffer_set_clock_rate:
* @jbuf: an #RTPJitterBuffer
+ * @clock_rate: the new clock rate
*
* Set the clock rate in the jitterbuffer.
*/
@@ -177,13 +178,8 @@ void
rtp_jitter_buffer_set_clock_rate (RTPJitterBuffer * jbuf, guint32 clock_rate)
{
if (jbuf->clock_rate != clock_rate) {
- 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);
- }
+ GST_DEBUG ("Clock rate changed from %" G_GUINT32_FORMAT " to %"
+ G_GUINT32_FORMAT, jbuf->clock_rate, clock_rate);
jbuf->clock_rate = clock_rate;
rtp_jitter_buffer_reset_skew (jbuf);
}