diff options
author | Olivier Crete <tester@tester.ca> | 2008-01-25 16:00:52 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2008-01-25 16:00:52 +0000 |
commit | 717657e696089f86490c16ee8a84f6375aecb001 (patch) | |
tree | 082404aac7e0436316c70e392c85c0f3ce06eed8 /gst/rtpmanager/gstrtpjitterbuffer.c | |
parent | d7599c112b59af9562e363bfae189d94973192fb (diff) | |
download | gst-plugins-bad-717657e696089f86490c16ee8a84f6375aecb001.tar.gz gst-plugins-bad-717657e696089f86490c16ee8a84f6375aecb001.tar.bz2 gst-plugins-bad-717657e696089f86490c16ee8a84f6375aecb001.zip |
gst/rtpmanager/: Remove the fixed clock-rate from the jitterbuffer and extend it so that a clock-rate can be provided...
Original commit message from CVS:
Patch by: Olivier Crete <tester@tester.ca>
* gst/rtpmanager/gstrtpjitterbuffer.c:
(gst_jitter_buffer_sink_parse_caps), (gst_rtp_jitter_buffer_chain):
* gst/rtpmanager/rtpjitterbuffer.c: (calculate_skew),
(rtp_jitter_buffer_insert):
* gst/rtpmanager/rtpjitterbuffer.h:
Remove the fixed clock-rate from the jitterbuffer and extend it so that
a clock-rate can be provided with each buffer instead. Fixes #511686.
Diffstat (limited to 'gst/rtpmanager/gstrtpjitterbuffer.c')
-rw-r--r-- | gst/rtpmanager/gstrtpjitterbuffer.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/gst/rtpmanager/gstrtpjitterbuffer.c b/gst/rtpmanager/gstrtpjitterbuffer.c index c85f4395..142cc95f 100644 --- a/gst/rtpmanager/gstrtpjitterbuffer.c +++ b/gst/rtpmanager/gstrtpjitterbuffer.c @@ -451,8 +451,6 @@ gst_jitter_buffer_sink_parse_caps (GstRtpJitterBuffer * jitterbuffer, if (priv->clock_rate <= 0) goto wrong_rate; - rtp_jitter_buffer_set_clock_rate (priv->jbuf, priv->clock_rate); - GST_DEBUG_OBJECT (jitterbuffer, "got clock-rate %d", priv->clock_rate); /* gah, clock-base is uint. If we don't have a base, we will use the first @@ -822,8 +820,6 @@ gst_rtp_jitter_buffer_chain (GstPad * pad, GstBuffer * buffer) gst_rtp_jitter_buffer_get_clock_rate (jitterbuffer, pt); if (priv->clock_rate == -1) goto not_negotiated; - - rtp_jitter_buffer_set_clock_rate (priv->jbuf, priv->clock_rate); } /* take the timestamp of the buffer. This is the time when the packet was @@ -875,7 +871,8 @@ gst_rtp_jitter_buffer_chain (GstPad * pad, GstBuffer * buffer) /* now insert the packet into the queue in sorted order. This function returns * FALSE if a packet with the same seqnum was already in the queue, meaning we * have a duplicate. */ - if (!rtp_jitter_buffer_insert (priv->jbuf, buffer, timestamp, &tail)) + if (!rtp_jitter_buffer_insert (priv->jbuf, buffer, timestamp, + priv->clock_rate, &tail)) goto duplicate; /* signal addition of new buffer when the _loop is waiting. */ |