summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2014-10-28 17:44:47 +0000
committerTim-Philipp Müller <tim@centricular.com>2014-10-28 18:56:21 +0000
commit2bf3ba8060dcee64932ce7fb43273b5be34881a0 (patch)
tree94cd21dee570ba4846b70ef2800d93793d2c7c24
parent5181967da9de271f7144e35114a6b013ae228818 (diff)
downloadgstreamer-plugins-bad-2bf3ba8060dcee64932ce7fb43273b5be34881a0.tar.gz
faad: fix wrong unrefs in set_format error code path
-rw-r--r--ext/faad/gstfaad.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/ext/faad/gstfaad.c b/ext/faad/gstfaad.c
index e106da934..d9313d5be 100644
--- a/ext/faad/gstfaad.c
+++ b/ext/faad/gstfaad.c
@@ -360,21 +360,18 @@ gst_faad_set_format (GstAudioDecoder * dec, GstCaps * caps)
wrong_length:
{
GST_DEBUG_OBJECT (faad, "codec_data less than 2 bytes long");
- gst_object_unref (faad);
gst_buffer_unmap (buf, &map);
return FALSE;
}
open_failed:
{
GST_DEBUG_OBJECT (faad, "failed to create decoder");
- gst_object_unref (faad);
gst_buffer_unmap (buf, &map);
return FALSE;
}
init_failed:
{
GST_DEBUG_OBJECT (faad, "faacDecInit2() failed");
- gst_object_unref (faad);
gst_buffer_unmap (buf, &map);
return FALSE;
}