From 09c6290b072e144b4f9599f8ca94965a59aed4f5 Mon Sep 17 00:00:00 2001 From: Youness Alaoui Date: Mon, 27 Aug 2007 17:24:24 +0000 Subject: [PATCH] [MOVED FROM GST-P-FARSIGHT] Fix RTP timestamps by sending a new_segment event to the payloader 20070827172424-4f0f6-d20907e3d436d50bfe74eb4fc3d2d6d7b6b6dbc5.gz --- gst/dtmf/gstdtmfsrc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gst/dtmf/gstdtmfsrc.c b/gst/dtmf/gstdtmfsrc.c index 3cefa651b4..ae6fb74ad7 100644 --- a/gst/dtmf/gstdtmfsrc.c +++ b/gst/dtmf/gstdtmfsrc.c @@ -792,7 +792,10 @@ gst_dtmf_src_change_state (GstElement * element, GstStateChange transition) switch (transition) { case GST_STATE_CHANGE_READY_TO_PAUSED: - gst_segment_init (&dtmfsrc->segment, GST_FORMAT_UNDEFINED); + gst_segment_init (&dtmfsrc->segment, GST_FORMAT_TIME); + gst_pad_push_event (dtmfsrc->srcpad, gst_event_new_new_segment (FALSE, + dtmfsrc->segment.rate, dtmfsrc->segment.format, + dtmfsrc->segment.start, dtmfsrc->segment.stop, dtmfsrc->segment.time)); /* Indicate that we don't do PRE_ROLL */ no_preroll = TRUE; break;