mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
deinterlace: remove check for impossible condition
Commit bd27a1f30b
added a few error handling
memory management checks. These check srccaps to see if it needs to be
unreferenced before returning, in the case of invalid_caps this goto jump
always happens before srccaps is set, so it will always be NULL in this
error label.
CID #1352035
This commit is contained in:
parent
a267741ca0
commit
3738ce8ba1
1 changed files with 0 additions and 2 deletions
|
@ -2692,8 +2692,6 @@ gst_deinterlace_setcaps (GstDeinterlace * self, GstPad * pad, GstCaps * caps)
|
|||
invalid_caps:
|
||||
{
|
||||
GST_ERROR_OBJECT (pad, "Invalid caps: %" GST_PTR_FORMAT, caps);
|
||||
if (srccaps)
|
||||
gst_caps_unref (srccaps);
|
||||
return FALSE;
|
||||
}
|
||||
set_caps_failed:
|
||||
|
|
Loading…
Reference in a new issue