mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-11 14:21:20 +00:00
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
This commit is contained in:
parent
db20b21a51
commit
b8565d3ab6
1 changed files with 4 additions and 4 deletions
|
@ -181,11 +181,11 @@ gst_opus_dec_start (GstAudioDecoder * dec)
|
||||||
gst_audio_decoder_set_plc_aware (dec, TRUE);
|
gst_audio_decoder_set_plc_aware (dec, TRUE);
|
||||||
|
|
||||||
if (odec->use_inband_fec) {
|
if (odec->use_inband_fec) {
|
||||||
/* FIXME: Is our maximum latency really 120ms, i.e. are we going
|
/* opusdec outputs samples directly from an input buffer, except if
|
||||||
* to buffer up to 120ms?
|
* 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,
|
gst_audio_decoder_set_latency (dec, 120 * GST_MSECOND, 120 * GST_MSECOND);
|
||||||
120 * GST_MSECOND);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
Loading…
Reference in a new issue