mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
faad2: Don't leak element reference in the setcaps function
Fixes bug #598139.
This commit is contained in:
parent
b8c520d874
commit
7eb553e2de
1 changed files with 3 additions and 0 deletions
|
@ -393,17 +393,20 @@ gst_faad_setcaps (GstPad * pad, GstCaps * caps)
|
|||
if (!faad->packetised)
|
||||
gst_faad_send_tags (faad);
|
||||
|
||||
gst_object_unref (faad);
|
||||
return TRUE;
|
||||
|
||||
/* ERRORS */
|
||||
wrong_length:
|
||||
{
|
||||
GST_DEBUG_OBJECT (faad, "codec_data less than 2 bytes long");
|
||||
gst_object_unref (faad);
|
||||
return FALSE;
|
||||
}
|
||||
init_failed:
|
||||
{
|
||||
GST_DEBUG_OBJECT (faad, "faacDecInit2() failed");
|
||||
gst_object_unref (faad);
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue