From c576bcec15da40d57c674dce57675ed5e3a93e5b Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 29 Aug 2007 16:56:27 +0000 Subject: gst/rtpmanager/gstrtpjitterbuffer.c: Improve Comments. Original commit message from CVS: * gst/rtpmanager/gstrtpjitterbuffer.c: (gst_rtp_jitter_buffer_loop): Improve Comments. * gst/rtpmanager/gstrtpsession.c: (stop_rtcp_thread), (gst_rtp_session_change_state), (gst_rtp_session_parse_caps), (gst_rtp_session_clock_rate), (gst_rtp_session_sink_setcaps), (gst_rtp_session_event_send_rtp_sink), (create_recv_rtp_sink), (create_send_rtp_sink): Also parse the sink caps for clock-rate instead of only relying on the result of the signal. * gst/rtpmanager/rtpsource.c: (rtp_source_send_rtp): Make sure we fetch the clock rate for payloads we are sending out so that we can use it for SR reports. --- gst/rtpmanager/rtpsource.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gst/rtpmanager/rtpsource.c') diff --git a/gst/rtpmanager/rtpsource.c b/gst/rtpmanager/rtpsource.c index ad491bd0..24bb8466 100644 --- a/gst/rtpmanager/rtpsource.c +++ b/gst/rtpmanager/rtpsource.c @@ -481,6 +481,9 @@ rtp_source_send_rtp (RTPSource * src, GstBuffer * buffer) if (timestamp != -1) src->last_timestamp = timestamp; + if (src->clock_rate == -1) + get_clock_rate (src, gst_rtp_buffer_get_payload_type (buffer)); + /* push packet */ if (src->callbacks.push_rtp) { guint32 ssrc; -- cgit