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
This commit is contained in:
Sebastian Dröge 2015-02-11 14:16:21 +01:00
parent da4f7e5387
commit 111c831c08

View file

@ -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);
}