GNOME Bugzilla – Bug 512774
[rtpjitterbuffer] does not accept clock rate from caps
Last modified: 2008-01-29 18:57:31 UTC
When the clock-rate is only provided by the caps of the buffers and not via the emit signal rtpjitterbuffer dump's all packets with: "No clock-rate in caps!" This is caused by changing the payload type of the packets ( or just the first payload type). Then the clock-rate read from the caps is reset to -1 and only tried to reset with the emit signal.
Created attachment 103952 [details] [review] get clock-rate from buffer recheck the caps of the buffer for the clock-rate.
Patch by: Thijs Vermeir <thijsvermeir at gmail dot com> * gst/rtpmanager/gstrtpjitterbuffer.c: (gst_rtp_jitter_buffer_chain): Try to get the new clock-rate from the buffer caps when we receive a new payload type instead of always firing the signal. Fixes #512774.