summaryrefslogtreecommitdiff
path: root/ext/opus/gstopusdec.c
diff options
context:
space:
mode:
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2015-03-04 09:24:27 +0000
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2015-03-04 11:04:29 +0000
commitb9c521c0ece762df409b50f7d4035ce047d96738 (patch)
tree7ba026b96ae37cbf72bd66250fa1428202776101 /ext/opus/gstopusdec.c
parent14f6fcdbd89f1934700b26f3e3afa54c654cbabb (diff)
downloadgstreamer-plugins-bad-b9c521c0ece762df409b50f7d4035ce047d96738.tar.gz
opusdec: fix latency query in FEC case
The max latency parameter is "the maximum time an element synchronizing to the clock is allowed to wait for receiving all data for the current running time" (docs/design/part-latency.txt). https://bugzilla.gnome.org/show_bug.cgi?id=744338
Diffstat (limited to 'ext/opus/gstopusdec.c')
-rw-r--r--ext/opus/gstopusdec.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/opus/gstopusdec.c b/ext/opus/gstopusdec.c
index 366b6b81c..cfa711a18 100644
--- a/ext/opus/gstopusdec.c
+++ b/ext/opus/gstopusdec.c
@@ -181,11 +181,11 @@ 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?
+ /* opusdec outputs samples directly from an input buffer, except if
+ * FEC is on, in which case it buffers one buffer in case one buffer
+ * goes missing.
*/
- gst_audio_decoder_set_latency (dec, 2 * GST_MSECOND + GST_MSECOND / 2,
- 120 * GST_MSECOND);
+ gst_audio_decoder_set_latency (dec, 120 * GST_MSECOND, 120 * GST_MSECOND);
}
return TRUE;