Skip to content
Snippets Groups Projects
Commit d73d2b22 authored by fryshorts's avatar fryshorts
Browse files

Fix infinite loop in v4l2 plugin.

When initialization of the device fails the plugin may hang
trying to join a non-existing pthread.
parent 71200051
No related branches found
No related tags found
No related merge requests found
...@@ -552,6 +552,7 @@ static void v4l2_terminate(struct v4l2_data *data) ...@@ -552,6 +552,7 @@ static void v4l2_terminate(struct v4l2_data *data)
os_event_signal(data->event); os_event_signal(data->event);
pthread_join(data->thread, NULL); pthread_join(data->thread, NULL);
os_event_destroy(data->event); os_event_destroy(data->event);
data->thread = 0;
} }
v4l2_destroy_mmap(&data->buffers); v4l2_destroy_mmap(&data->buffers);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment