diff options
author | zeeshan.ali@nokia.com <zeeshan.ali@nokia.com> | 2007-02-15 12:26:55 +0000 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2009-02-21 17:47:56 +0100 |
commit | 221be0ea0661b38f255dae9a07b2d9d30187e4ae (patch) | |
tree | 59b5ad4213f8cfae97ae6f824fd04dde6309f5e9 /gst/rtpdtmf | |
parent | 04413fffc2e88747c001a6b464def276cf7e2c45 (diff) | |
download | gst-plugins-bad-221be0ea0661b38f255dae9a07b2d9d30187e4ae.tar.gz gst-plugins-bad-221be0ea0661b38f255dae9a07b2d9d30187e4ae.tar.bz2 gst-plugins-bad-221be0ea0661b38f255dae9a07b2d9d30187e4ae.zip |
[MOVED FROM GST-P-FARSIGHT] Attempt to correct event handling
20070215122655-65035-47070d9a28c08d9353b04d2d9301e29b7ee72b83.gz
Diffstat (limited to 'gst/rtpdtmf')
-rw-r--r-- | gst/rtpdtmf/gstrtpdtmfsrc.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/gst/rtpdtmf/gstrtpdtmfsrc.c b/gst/rtpdtmf/gstrtpdtmfsrc.c index d535271f..464b34d5 100644 --- a/gst/rtpdtmf/gstrtpdtmfsrc.c +++ b/gst/rtpdtmf/gstrtpdtmfsrc.c @@ -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: |