dtmfdetect: if we tell that we handle gap flags, then do so
This commit is contained in:
parent
88b223d36b
commit
16f532b71a
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user