deinterlace: break as soon as non-interlaced if found
It looks for a non-interlaced entry on the filter caps, break as soon as one is found to avoid wasting cpu
This commit is contained in:
parent
82d62b9edd
commit
dc0e2281b9
@ -2182,6 +2182,7 @@ gst_deinterlace_getcaps (GstDeinterlace * self, GstPad * pad, GstCaps * filter)
|
||||
|
||||
if (!interlace_mode || g_strcmp0 (interlace_mode, "progressive") == 0) {
|
||||
filter_interlaced = FALSE;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user