mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 17:50:36 +00:00
[MOVED FROM GST-P-FARSIGHT] Attempt to correct event handling
20070215122655-65035-47070d9a28c08d9353b04d2d9301e29b7ee72b83.gz
This commit is contained in:
parent
04413fffc2
commit
221be0ea06
1 changed files with 8 additions and 4 deletions
|
@ -272,11 +272,14 @@ gst_rtp_dtmf_src_handle_event (GstPad * pad, GstEvent * event)
|
|||
}
|
||||
}
|
||||
|
||||
result = TRUE;
|
||||
break;
|
||||
}
|
||||
case GST_EVENT_FLUSH_STOP:
|
||||
result = gst_pad_event_default (pad, event);
|
||||
gst_segment_init (&dtmfsrc->segment, GST_FORMAT_UNDEFINED);
|
||||
/* Ideally this element should not be flushed but let's handle the event
|
||||
* just in case it is */
|
||||
case GST_EVENT_FLUSH_START:
|
||||
gst_rtp_dtmf_src_stop (dtmfsrc);
|
||||
result = TRUE;
|
||||
break;
|
||||
case GST_EVENT_NEWSEGMENT:
|
||||
{
|
||||
|
@ -289,7 +292,8 @@ gst_rtp_dtmf_src_handle_event (GstPad * pad, GstEvent * event)
|
|||
&position);
|
||||
gst_segment_set_newsegment (&dtmfsrc->segment, update, rate, fmt,
|
||||
start, stop, position);
|
||||
|
||||
|
||||
result = TRUE;
|
||||
break;
|
||||
}
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue