ahc: enable autofocus callback
authorJustin Kim <justin.kim@collabora.com>
Wed, 13 Dec 2017 04:43:30 +0000 (13:43 +0900)
committerTim-Philipp Müller <tim@centricular.com>
Fri, 26 Jan 2018 10:13:00 +0000 (10:13 +0000)
It should be enabled to set autofocus properly, but
it seems to be commented out mistakenly from the first commit.

https://bugzilla.gnome.org/show_bug.cgi?id=790945

sys/androidmedia/gst-android-hardware-camera.c

index 639e024..614dc86 100644 (file)
@@ -304,9 +304,9 @@ static JNINativeMethod native_methods[] = {
   {(gchar *) "gst_ah_camera_on_error",
         (gchar *) "(ILandroid/hardware/Camera;JJ)V",
       (void *) gst_ah_camera_on_error},
-//  {(gchar *) "gst_ah_camera_on_auto_focus",
-//        (gchar *) "(ZLandroid/hardware/Camera;JJ)V",
-//      (void *) gst_ah_camera_on_auto_focus}
+  {(gchar *) "gst_ah_camera_on_auto_focus",
+        (gchar *) "(ZLandroid/hardware/Camera;JJ)V",
+      (void *) gst_ah_camera_on_auto_focus}
 };
 
 static gboolean