mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 10:10:32 +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;
|
break;
|
||||||
}
|
}
|
||||||
case GST_EVENT_FLUSH_STOP:
|
/* Ideally this element should not be flushed but let's handle the event
|
||||||
result = gst_pad_event_default (pad, event);
|
* just in case it is */
|
||||||
gst_segment_init (&dtmfsrc->segment, GST_FORMAT_UNDEFINED);
|
case GST_EVENT_FLUSH_START:
|
||||||
|
gst_rtp_dtmf_src_stop (dtmfsrc);
|
||||||
|
result = TRUE;
|
||||||
break;
|
break;
|
||||||
case GST_EVENT_NEWSEGMENT:
|
case GST_EVENT_NEWSEGMENT:
|
||||||
{
|
{
|
||||||
|
@ -290,6 +293,7 @@ gst_rtp_dtmf_src_handle_event (GstPad * pad, GstEvent * event)
|
||||||
gst_segment_set_newsegment (&dtmfsrc->segment, update, rate, fmt,
|
gst_segment_set_newsegment (&dtmfsrc->segment, update, rate, fmt,
|
||||||
start, stop, position);
|
start, stop, position);
|
||||||
|
|
||||||
|
result = TRUE;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in a new issue