deinterlace: break as soon as non-interlaced if found
authorThiago Santos <thiagoss@osg.samsung.com>
Mon, 19 Oct 2015 21:04:56 +0000 (18:04 -0300)
committerThiago Santos <thiagoss@osg.samsung.com>
Sun, 25 Oct 2015 14:02:34 +0000 (11:02 -0300)
It looks for a non-interlaced entry on the filter caps, break
as soon as one is found to avoid wasting cpu

gst/deinterlace/gstdeinterlace.c

index e4aeafa..b6704cd 100644 (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;
       }
     }
   }