remove extra frame skips from startup.
authorMarko Ollonen <marko.ollonen@ixonos.com>
Mon, 11 Feb 2013 08:26:11 +0000 (10:26 +0200)
committerMarko Ollonen <marko.ollonen@ixonos.com>
Mon, 11 Feb 2013 08:26:11 +0000 (10:26 +0200)
Change-Id: Ia8c8938a1d006988b9461f2e671557d331d2894d

gst-libs/atomisphal/mfld_cam.c

index 30733a4..6e7c84a 100644 (file)
@@ -1196,7 +1196,7 @@ libmfld_cam_init (GstV4l2MFLDAdvCI * advci)
   mfld_driver.start_still_af = 0;
   mfld_driver.still_af_count = 0;
 
-  mfld_driver.first_frame = 1;
+  mfld_driver.first_frame = 0;
 
   mfld_driver.mmap = 1;
   mfld_driver.g_3a_started = 0;
@@ -1257,9 +1257,10 @@ cam_driver_init (int fd, const char *sensor_id)
     mfldadvci->AfSetMode(advci_af_mode_auto);
     mfldadvci->AfSetMeteringMode (advci_af_metering_mode_auto);
   }
-  else
+  else{
     mfld_driver.sensor_type =  SENSOR_TYPE_SOC;
-
+    mfld_driver.first_frame = 1;
+  }
   cam_driver_init_gamma (fd);
 
   /* FixMe Need to get the ISO speed , apture when use need to read these