mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-08 10:31:05 +00:00
[MOVED FROM GST-P-FARSIGHT] Fix RTP timestamps by sending a new_segment event to the payloader
20070827172424-4f0f6-d20907e3d436d50bfe74eb4fc3d2d6d7b6b6dbc5.gz
This commit is contained in:
parent
bb4f9fa477
commit
09c6290b07
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue