mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
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
1 changed files with 1 additions and 0 deletions
|
@ -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…
Reference in a new issue