From 763fd13ba973c5798eadc33dd2f299a53e58e713 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Thu, 25 Mar 2010 22:58:47 +0200 Subject: [PATCH] dtmfdetect: if we tell that we handle gap flags, then do so --- gst/dtmf/gstdtmfdetect.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst/dtmf/gstdtmfdetect.c b/gst/dtmf/gstdtmfdetect.c index a4d0c07..cca196d 100644 --- a/gst/dtmf/gstdtmfdetect.c +++ b/gst/dtmf/gstdtmfdetect.c @@ -176,7 +176,8 @@ gst_dtmf_detect_transform_ip (GstBaseTransform * trans, GstBuffer * buf) if (GST_BUFFER_IS_DISCONT (buf)) zap_dtmf_detect_init (&self->dtmf_state); - + if (GST_BUFFER_FLAG_IS_SET (buf, GST_BUFFER_FLAG_GAP)) + return GST_FLOW_OK; zap_dtmf_detect (&self->dtmf_state, (int16_t *) GST_BUFFER_DATA (buf), GST_BUFFER_SIZE (buf) / 2, FALSE); -- 2.7.4