dtmfdetect: if we tell that we handle gap flags, then do so
authorStefan Kost <ensonic@users.sf.net>
Thu, 25 Mar 2010 20:58:47 +0000 (22:58 +0200)
committerStefan Kost <ensonic@users.sf.net>
Thu, 25 Mar 2010 21:01:42 +0000 (23:01 +0200)
gst/dtmf/gstdtmfdetect.c

index a4d0c07e3129f019747447f3ed2b1922d90e7533..cca196dad196f7768dbddf1a44eb630074a9fad2 100644 (file)
@@ -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);