From e8c927e9f5bc96796504730387db1464e15a974e Mon Sep 17 00:00:00 2001 From: "zeeshan.ali@nokia.com" Date: Thu, 29 Mar 2007 10:38:24 +0000 Subject: [PATCH] [MOVED FROM GST-P-FARSIGHT] Initialize the GstSegment at the right time 20070329103824-65035-9ab3a0a03c5f9329cd4625ae6567c2c1fd4a73d8.gz --- gst/rtpdtmf/gstrtpdtmfsrc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gst/rtpdtmf/gstrtpdtmfsrc.c b/gst/rtpdtmf/gstrtpdtmfsrc.c index e952129ad6..2885ab6723 100644 --- a/gst/rtpdtmf/gstrtpdtmfsrc.c +++ b/gst/rtpdtmf/gstrtpdtmfsrc.c @@ -471,8 +471,6 @@ gst_rtp_dtmf_src_start (GstRTPDTMFSrc *dtmfsrc, dtmfsrc->payload = g_new0 (GstRTPDTMFPayload, 1); dtmfsrc->payload->event = CLAMP (event_number, MIN_EVENT, MAX_EVENT); dtmfsrc->payload->volume = CLAMP (event_volume, MIN_VOLUME, MAX_VOLUME); - - gst_segment_init (&dtmfsrc->segment, GST_FORMAT_UNDEFINED); dtmfsrc->first_packet = TRUE; clock = GST_ELEMENT_CLOCK (dtmfsrc); @@ -658,6 +656,7 @@ gst_rtp_dtmf_src_change_state (GstElement * element, GstStateChange transition) case GST_STATE_CHANGE_READY_TO_PAUSED: /* Indicate that we don't do PRE_ROLL */ no_preroll = TRUE; + gst_segment_init (&dtmfsrc->segment, GST_FORMAT_UNDEFINED); break; case GST_STATE_CHANGE_PAUSED_TO_PLAYING: break;