mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
deinterlace: Fixed memory leak in error code path
https://bugzilla.gnome.org/show_bug.cgi?id=788041
This commit is contained in:
parent
c53bee067d
commit
49ed67c4f2
1 changed files with 4 additions and 4 deletions
|
@ -2801,16 +2801,16 @@ set_caps_failed:
|
||||||
GST_ERROR_OBJECT (pad, "Failed to set caps: %" GST_PTR_FORMAT, srccaps);
|
GST_ERROR_OBJECT (pad, "Failed to set caps: %" GST_PTR_FORMAT, srccaps);
|
||||||
if (peercaps)
|
if (peercaps)
|
||||||
gst_caps_unref (peercaps);
|
gst_caps_unref (peercaps);
|
||||||
if (srccaps)
|
gst_caps_unref (srccaps);
|
||||||
gst_caps_unref (srccaps);
|
|
||||||
gst_pad_mark_reconfigure (self->srcpad);
|
gst_pad_mark_reconfigure (self->srcpad);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
no_bufferpool:
|
no_bufferpool:
|
||||||
{
|
{
|
||||||
GST_ERROR_OBJECT (pad, "could not negotiate bufferpool");
|
GST_ERROR_OBJECT (pad, "could not negotiate bufferpool");
|
||||||
if (srccaps)
|
if (peercaps)
|
||||||
gst_caps_unref (srccaps);
|
gst_caps_unref (peercaps);
|
||||||
|
gst_caps_unref (srccaps);
|
||||||
gst_pad_mark_reconfigure (self->srcpad);
|
gst_pad_mark_reconfigure (self->srcpad);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue