diff --git a/plugins/linux-v4l2/v4l2-input.c b/plugins/linux-v4l2/v4l2-input.c index 61a4ce636..09f157d1f 100644 --- a/plugins/linux-v4l2/v4l2-input.c +++ b/plugins/linux-v4l2/v4l2-input.c @@ -552,6 +552,7 @@ static void v4l2_terminate(struct v4l2_data *data) os_event_signal(data->event); pthread_join(data->thread, NULL); os_event_destroy(data->event); + data->thread = 0; } v4l2_destroy_mmap(&data->buffers);