audiodecoder: fix ctitical info assertion 'GST_IS_CAPS (dec->priv->ctx.caps)' failed
authorHou Qi <qi.hou@nxp.com>
Wed, 21 Aug 2019 11:04:56 +0000 (19:04 +0800)
committerQi Hou <qi.hou@nxp.com>
Wed, 28 Aug 2019 00:59:56 +0000 (00:59 +0000)
commitb65d1c6de903d9832aedb5b2ec89e249f573cb55
tree0e39a9fe3ed970bb2037432fac945030f854241b
parent564ab3031b61c8b795d33e7bed498f8ee7f6ed9e
audiodecoder: fix ctitical info assertion 'GST_IS_CAPS (dec->priv->ctx.caps)' failed

Matroskademux will send gap event when lag of video and audio is over 3 seconds.
audiodecoder needs to handle gap event and set default output caps.
Only audio info is set, while output caps is ignored. This cause the assertion failed.

Need to fill output caps in gst_audio_decoder_negotiate_default_caps() with
negotiated caps to avoid critical info printed when check it later.
gst-libs/gst/audio/gstaudiodecoder.c