From 111c831c08b9a68379f30f1600eea463405c301f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 11 Feb 2015 14:16:21 +0100 Subject: [PATCH] Improve and fix LATENCY query handling This now follows the design docs everywhere, especially the maximum latency handling. https://bugzilla.gnome.org/show_bug.cgi?id=744106 --- ext/opus/gstopusdec.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ext/opus/gstopusdec.c b/ext/opus/gstopusdec.c index c148bee..366b6b8 100644 --- a/ext/opus/gstopusdec.c +++ b/ext/opus/gstopusdec.c @@ -181,6 +181,9 @@ gst_opus_dec_start (GstAudioDecoder * dec) gst_audio_decoder_set_plc_aware (dec, TRUE); if (odec->use_inband_fec) { + /* FIXME: Is our maximum latency really 120ms, i.e. are we going + * to buffer up to 120ms? + */ gst_audio_decoder_set_latency (dec, 2 * GST_MSECOND + GST_MSECOND / 2, 120 * GST_MSECOND); } -- 2.7.4