Fixed minor bug with closing ./darknet detector demo ...

pull/5400/head
AlexeyAB 5 years ago
parent 8e272fa868
commit 83b3d46ede
  1. 3
      src/demo.c

@ -70,7 +70,8 @@ void *fetch_in_thread(void *ptr)
in_s = get_image_from_stream_resize(cap, net.w, net.h, net.c, &in_img, dont_close_stream);
if (!in_s.data) {
printf("Stream closed.\n");
flag_exit = 1;
custom_atomic_store_int(&flag_exit, 1);
custom_atomic_store_int(&run_fetch_in_thread, 0);
//exit(EXIT_FAILURE);
return 0;
}

Loading…
Cancel
Save