mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-29 19:50:40 +00:00
dtmfdetect: if we tell that we handle gap flags, then do so
This commit is contained in:
parent
88b223d36b
commit
16f532b71a
1 changed files with 2 additions and 1 deletions
|
@ -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…
Reference in a new issue