summaryrefslogtreecommitdiff
path: root/ext/faad
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 17:53:00 +0000
commit8a9ab58e33f5ef9c233a0ecee8ade4922573c848 (patch)
tree6de4672c7cd5e9c6851ed3591720fdb2169d1145 /ext/faad
parent5e2e6f332661e9e9898756921ebb2b2542fae452 (diff)
downloadgstreamer-plugins-bad-8a9ab58e33f5ef9c233a0ecee8ade4922573c848.tar.gz
faad: fix wrong unrefs in set_format error code path
Diffstat (limited to 'ext/faad')
-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 2b7afbef6..4aa704dd9 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;
}