audiodecoder: plug caps leak when setting output format

This commit is contained in:
Mark Nauwelaerts 2012-03-05 12:23:56 +01:00
parent d8f698fe20
commit aae64c40a8

View file

@ -552,6 +552,7 @@ gst_audio_decoder_set_output_format (GstAudioDecoder * dec,
GST_AUDIO_DECODER_STREAM_UNLOCK (dec);
res = gst_pad_set_caps (dec->srcpad, caps);
gst_caps_unref (caps);
done:
return res;