mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
audiodecoder: only arrange to reconfigure if data provided
... otherwise audio format need not be known already.
This commit is contained in:
parent
c9c4aedaa6
commit
65ea6dee60
1 changed files with 1 additions and 1 deletions
|
@ -913,7 +913,7 @@ gst_audio_decoder_finish_frame (GstAudioDecoder * dec, GstBuffer * buf,
|
||||||
|
|
||||||
GST_AUDIO_DECODER_STREAM_LOCK (dec);
|
GST_AUDIO_DECODER_STREAM_LOCK (dec);
|
||||||
|
|
||||||
if (G_UNLIKELY (gst_pad_check_reconfigure (dec->srcpad))) {
|
if (G_UNLIKELY (buf && gst_pad_check_reconfigure (dec->srcpad))) {
|
||||||
if (!gst_audio_decoder_set_output_format (dec, &ctx->info)) {
|
if (!gst_audio_decoder_set_output_format (dec, &ctx->info)) {
|
||||||
ret = GST_FLOW_NOT_NEGOTIATED;
|
ret = GST_FLOW_NOT_NEGOTIATED;
|
||||||
goto exit;
|
goto exit;
|
||||||
|
|
Loading…
Reference in a new issue