summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 1bff6ef..a99659b 100644
--- a/main.c
+++ b/main.c
@@ -115,8 +115,8 @@ int main(int argc, char *argv[])
goto done;
}
- uvc_stream_init_uvc(stream, fc);
uvc_stream_set_event_handler(stream, &events);
+ uvc_stream_init_uvc(stream, fc);
/* Main capture loop */
events_loop(&events);