deinterlace: remove check for impossible condition
Commit bd27a1f30b4458f2edee53c76dd07fb35904b61d 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
@ -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…
x
Reference in New Issue
Block a user