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:
Thiago Santos 2015-10-19 18:04:56 -03:00
parent 82d62b9edd
commit dc0e2281b9

View file

@ -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;
}
}
}