Commit 6628d20e authored by Tristan Matthews's avatar Tristan Matthews Committed by Sebastian Dröge

speex: fix latency query

  Speex should report 30 ms latency for narrowband mode, 34 otherwise.
  Fixes #619018
parent 9c59da86
......@@ -410,7 +410,11 @@ gst_speex_enc_convert_sink (GstPad * pad, GstFormat src_format,
static gint64
gst_speex_enc_get_latency (GstSpeexEnc * enc)
{
return 30 * GST_MSECOND;
/* See the Speex manual section "Latency and algorithmic delay" */
if (enc->rate == 8000)
return 30 * GST_MSECOND;
else
return 34 * GST_MSECOND;
}
static const GstQueryType *
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment