diff options
author | zeeshan.ali@nokia.com <zeeshan.ali@nokia.com> | 2007-03-29 10:38:24 +0000 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2009-02-21 17:47:57 +0100 |
commit | e8c927e9f5bc96796504730387db1464e15a974e (patch) | |
tree | 7bc3b6957877aaa9c32c1c36ba694d9e3505f1b3 /gst | |
parent | 109b232e55d43d81aa144e952c995e1235011514 (diff) | |
download | gst-plugins-bad-e8c927e9f5bc96796504730387db1464e15a974e.tar.gz gst-plugins-bad-e8c927e9f5bc96796504730387db1464e15a974e.tar.bz2 gst-plugins-bad-e8c927e9f5bc96796504730387db1464e15a974e.zip |
[MOVED FROM GST-P-FARSIGHT] Initialize the GstSegment at the right time
20070329103824-65035-9ab3a0a03c5f9329cd4625ae6567c2c1fd4a73d8.gz
Diffstat (limited to 'gst')
-rw-r--r-- | gst/rtpdtmf/gstrtpdtmfsrc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gst/rtpdtmf/gstrtpdtmfsrc.c b/gst/rtpdtmf/gstrtpdtmfsrc.c index e952129a..2885ab67 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; |