audiodecoder: only arrange to reconfigure if data provided

... otherwise audio format need not be known already.
This commit is contained in:
Mark Nauwelaerts 2012-07-24 14:48:20 +02:00
parent c9c4aedaa6
commit 65ea6dee60

View file

@ -913,7 +913,7 @@ gst_audio_decoder_finish_frame (GstAudioDecoder * dec, GstBuffer * buf,
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)) {
ret = GST_FLOW_NOT_NEGOTIATED;
goto exit;