summaryrefslogtreecommitdiffstats
path: root/gst/rtpdtmf
diff options
context:
space:
mode:
Diffstat (limited to 'gst/rtpdtmf')
-rw-r--r--gst/rtpdtmf/gstrtpdtmfsrc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/rtpdtmf/gstrtpdtmfsrc.c b/gst/rtpdtmf/gstrtpdtmfsrc.c
index 5e3a2555..e952129a 100644
--- a/gst/rtpdtmf/gstrtpdtmfsrc.c
+++ b/gst/rtpdtmf/gstrtpdtmfsrc.c
@@ -302,8 +302,6 @@ gst_rtp_dtmf_src_init (GstRTPDTMFSrc * dtmfsrc, gpointer g_class)
dtmfsrc->pt = DEFAULT_PT;
dtmfsrc->clock_rate = DEFAULT_CLOCK_RATE;
- gst_rtp_dtmf_src_set_caps (dtmfsrc);
-
GST_DEBUG_OBJECT (dtmfsrc, "init done");
}
@@ -503,6 +501,8 @@ gst_rtp_dtmf_src_start (GstRTPDTMFSrc *dtmfsrc,
else
dtmfsrc->ts_base = dtmfsrc->ts_offset;
+ gst_rtp_dtmf_src_set_caps (dtmfsrc);
+
/* Don't forget to get exclusive access to the stream */
gst_rtp_dtmf_src_set_stream_lock (dtmfsrc, TRUE);