diff options
author | Youness Alaoui <youness.alaoui@collabora.co.uk> | 2007-08-27 17:24:24 +0000 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2009-02-21 17:48:00 +0100 |
commit | 87c552ae2b56cbbcc771ca43af4d49d09ffd6926 (patch) | |
tree | 53e1c281a8351554da741b857f97bd7335fbb26a /gst | |
parent | b8550c20c0021d70ee1e0ac10a501973f3baecfc (diff) | |
download | gst-plugins-bad-87c552ae2b56cbbcc771ca43af4d49d09ffd6926.tar.gz gst-plugins-bad-87c552ae2b56cbbcc771ca43af4d49d09ffd6926.tar.bz2 gst-plugins-bad-87c552ae2b56cbbcc771ca43af4d49d09ffd6926.zip |
[MOVED FROM GST-P-FARSIGHT] Fix RTP timestamps by sending a new_segment event to the payloader
20070827172424-4f0f6-d20907e3d436d50bfe74eb4fc3d2d6d7b6b6dbc5.gz
Diffstat (limited to 'gst')
-rw-r--r-- | gst/dtmf/gstdtmfsrc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gst/dtmf/gstdtmfsrc.c b/gst/dtmf/gstdtmfsrc.c index 3cefa651..ae6fb74a 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; |