mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 04:00:37 +00:00
speex: fix latency query
Speex should report 30 ms latency for narrowband mode, 34 otherwise. Fixes #619018
This commit is contained in:
parent
9c59da8601
commit
6628d20eac
1 changed files with 5 additions and 1 deletions
|
@ -410,7 +410,11 @@ gst_speex_enc_convert_sink (GstPad * pad, GstFormat src_format,
|
|||
static gint64
|
||||
gst_speex_enc_get_latency (GstSpeexEnc * enc)
|
||||
{
|
||||
/* 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 *
|
||||
|
|
Loading…
Reference in a new issue