audiodecoder: Don't output an (unreffed) buffer in error cases
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 14 Sep 2012 12:53:16 +0000 (14:53 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 14 Sep 2012 12:54:22 +0000 (14:54 +0200)
gst-libs/gst/audio/gstaudiodecoder.c

index 0bb2429..003ec8c 100644 (file)
@@ -1108,9 +1108,10 @@ gst_audio_decoder_finish_frame (GstAudioDecoder * dec, GstBuffer * buf,
   if (G_UNLIKELY (dec->priv->error_count))
     dec->priv->error_count--;
 
-exit:
   ret = gst_audio_decoder_output (dec, buf);
 
+exit:
+
   GST_AUDIO_DECODER_STREAM_UNLOCK (dec);
 
   return ret;