After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 511686 - make gstrtpjitterbuffer respect different clock rates for different pts
make gstrtpjitterbuffer respect different clock rates for different pts
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Linux
: Normal normal
: 0.10.6
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-01-24 01:06 UTC by Olivier Crête
Modified: 2008-01-25 16:01 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Change the clockrate on the JB when the PT changes (1.32 KB, patch)
2008-01-24 01:07 UTC, Olivier Crête
committed Details | Review
pass the clock-rate with each buffer (2.90 KB, patch)
2008-01-24 01:08 UTC, Olivier Crête
committed Details | Review
remove the now unused clockrate inside rtpjitterbuffer (1.77 KB, patch)
2008-01-24 01:09 UTC, Olivier Crête
none Details | Review
Updated version of the patch to remove the unused functions (2.06 KB, patch)
2008-01-24 22:53 UTC, Olivier Crête
committed Details | Review

Description Olivier Crête 2008-01-24 01:06:21 UTC
Currently, the gstrtpjitterbuffer gets its clock-rate set at the beginning and it never changes, but its actually a per-pt value (and since there is one jb per SSRc, it could be a per-packet value).

I'm attaching three additive patches.

1. gstrtpjitterbuffer-follow-pt-clock-rate-change.patch: this patch changes the clock-rate on the jb when the PT changes

2. jb-per-packet-clockrate.patch: This patch actually passes the clock-rate down to the jb with each packet

3. remove-unused-functions.patch, finally this one removes the now unused set/get_clock_rate functions on the jb
Comment 1 Olivier Crête 2008-01-24 01:07:01 UTC
Created attachment 103590 [details] [review]
Change the clockrate on the JB when the PT changes
Comment 2 Olivier Crête 2008-01-24 01:08:06 UTC
Created attachment 103591 [details] [review]
pass the clock-rate with each buffer
Comment 3 Olivier Crête 2008-01-24 01:09:28 UTC
Created attachment 103592 [details] [review]
remove the now unused clockrate inside rtpjitterbuffer
Comment 4 Olivier Crête 2008-01-24 22:53:37 UTC
Created attachment 103683 [details] [review]
Updated version of the patch to remove the unused functions

I forgot one call, its now fixed
Comment 5 Wim Taymans 2008-01-25 16:01:21 UTC
        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.

        * gst/rtpmanager/gstrtpjitterbuffer.c:
        (gst_rtp_jitter_buffer_init), (gst_rtp_jitter_buffer_change_state),
        (gst_rtp_jitter_buffer_chain), (gst_rtp_jitter_buffer_loop):
        Remove old unused variable.
        Track pt on input buffers and get the clock-rate when it changes.
        Ignore packets with unknown clock-rate. See #511686.