mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +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)
|
if (!faad->packetised)
|
||||||
gst_faad_send_tags (faad);
|
gst_faad_send_tags (faad);
|
||||||
|
|
||||||
|
gst_object_unref (faad);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
/* ERRORS */
|
/* ERRORS */
|
||||||
wrong_length:
|
wrong_length:
|
||||||
{
|
{
|
||||||
GST_DEBUG_OBJECT (faad, "codec_data less than 2 bytes long");
|
GST_DEBUG_OBJECT (faad, "codec_data less than 2 bytes long");
|
||||||
|
gst_object_unref (faad);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
init_failed:
|
init_failed:
|
||||||
{
|
{
|
||||||
GST_DEBUG_OBJECT (faad, "faacDecInit2() failed");
|
GST_DEBUG_OBJECT (faad, "faacDecInit2() failed");
|
||||||
|
gst_object_unref (faad);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue