summaryrefslogtreecommitdiff
path: root/examples/sample-afl.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/sample-afl.c')
-rw-r--r--examples/sample-afl.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/sample-afl.c b/examples/sample-afl.c
index 04701ff29..2e7c12958 100644
--- a/examples/sample-afl.c
+++ b/examples/sample-afl.c
@@ -62,6 +62,15 @@ int main(int argc, char **argv) {
}
#endif
printf ("OK, %s\n", summary.text);
+ while (1) {
+ CameraEventType evttype;
+ void *data = NULL;
+
+ ret = gp_camera_wait_for_event(camera, 1, &evttype, &data, context);
+ if (ret < GP_OK) break;
+ if (data) free (data);
+ if (evttype == GP_EVENT_TIMEOUT) break;
+ }
/* AFL PART ENDS HERE */
out: