Files
Megapixels/src
Andrey Skvortsov 883c16733d video: fix segmentation fault on video capture
If there was no picture capture or camera switch after application start, then
state_proc.configuration is uninitialized. If video capture is started
in this case, then segmentation fault happens.

Thread 8 "megapixels-pr" received signal SIGSEGV, Segmentation fault.
1085	        if (state_proc.configuration->make != NULL &&
(gdb) p state_proc.configuration
$1 = (libmegapixels_devconfig *) 0x0

state.configuration is set in update_state(), but set only after
init_controls(). After update_process_pipeline() is
called from init_controls() pipeline_change flag is reset and changes
after init_controls() (including state.configuration) are not applied to
state_proc. Removing update_process_pipeline from init_controls()
makes all settings to be applied at the end of update_state().
init_controls() is called only from update_state().
2025-04-08 22:38:06 +00:00
..
2022-06-21 14:50:05 +02:00
2021-11-13 00:06:11 +11:00
2021-11-13 00:06:11 +11:00
2022-06-21 14:50:05 +02:00
2022-06-21 14:50:05 +02:00
2024-09-07 22:52:30 +02:00
2024-09-07 22:52:30 +02:00
2024-07-15 19:36:55 +02:00
2021-11-13 00:06:11 +11:00
2023-07-11 23:43:23 +02:00
2023-07-11 23:43:23 +02:00