From e779002cfd2118272865269def66498e66d5ab6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 10 Oct 2012 15:49:46 +0200 Subject: [PATCH] audiodecoder: Don't unref caps twice Thanks to Josep Torra for noticing. --- gst-libs/gst/audio/gstaudiodecoder.c | 1 - 1 file changed, 1 deletion(-) diff --git a/gst-libs/gst/audio/gstaudiodecoder.c b/gst-libs/gst/audio/gstaudiodecoder.c index 93ee163143..9ee8366cb4 100644 --- a/gst-libs/gst/audio/gstaudiodecoder.c +++ b/gst-libs/gst/audio/gstaudiodecoder.c @@ -659,7 +659,6 @@ gst_audio_decoder_set_output_format (GstAudioDecoder * dec, if (!gst_caps_is_subset (caps, templ_caps)) { GST_WARNING_OBJECT (dec, "Requested output format %" GST_PTR_FORMAT " do not match template %" GST_PTR_FORMAT, caps, templ_caps); - gst_caps_unref (caps); gst_caps_unref (templ_caps); goto refuse_caps; }