summaryrefslogtreecommitdiffstats
path: root/gst/rtpmanager/rtpsource.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/rtpmanager/rtpsource.c')
-rw-r--r--gst/rtpmanager/rtpsource.c3
1 files changed, 3 insertions, 0 deletions
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;