mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 08:17:01 +00:00
faad: fix wrong unrefs in set_format error code path
This commit is contained in:
parent
5e2e6f3326
commit
8a9ab58e33
1 changed files with 0 additions and 3 deletions
|
@ -360,21 +360,18 @@ gst_faad_set_format (GstAudioDecoder * dec, GstCaps * caps)
|
||||||
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);
|
|
||||||
gst_buffer_unmap (buf, &map);
|
gst_buffer_unmap (buf, &map);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
open_failed:
|
open_failed:
|
||||||
{
|
{
|
||||||
GST_DEBUG_OBJECT (faad, "failed to create decoder");
|
GST_DEBUG_OBJECT (faad, "failed to create decoder");
|
||||||
gst_object_unref (faad);
|
|
||||||
gst_buffer_unmap (buf, &map);
|
gst_buffer_unmap (buf, &map);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
init_failed:
|
init_failed:
|
||||||
{
|
{
|
||||||
GST_DEBUG_OBJECT (faad, "faacDecInit2() failed");
|
GST_DEBUG_OBJECT (faad, "faacDecInit2() failed");
|
||||||
gst_object_unref (faad);
|
|
||||||
gst_buffer_unmap (buf, &map);
|
gst_buffer_unmap (buf, &map);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue