fix: on video disconnect reset all context resolution
This commit is contained in:
@@ -428,6 +428,8 @@ void *video_background_read(void *args) {
|
||||
video_capture->name);
|
||||
video_capture->disconnected = true;
|
||||
context->input_formats[input_index] = 0;
|
||||
context->input_resolutions[input_index][0] = 0;
|
||||
context->input_resolutions[input_index][1] = 0;
|
||||
}
|
||||
free(process_args);
|
||||
pthread_exit(NULL);
|
||||
|
||||
Reference in New Issue
Block a user