video recording requires pulseaudio support. Otherwise following error
happens:
```
Phase 2: mpegize -- /home/mobian/Videos/VID20250331075934.mkv
Traceback (most recent call last):
File "/app/libexec/megapixels//mpegize.py", line 546, in <module>
m.run(sys.argv)
File "/app/libexec/megapixels//mpegize.py", line 462, in run
gst_convert(m.base, argv[3], ext=="dng")
File "/app/libexec/megapixels//mpegize.py", line 260, in gst_convert
t2 = audio.get_time()
^^^^^^^^^^^^^^^^
File "/app/libexec/megapixels//mpegize.py", line 102, in get_time
s = s[:-m.slen]
~^^^^^^^^^^
TypeError: 'NoneType' object is not subscriptable
```
In current state after video is processed and saved button has
video-recording icon, that is confusing.
The change handles exit code of movie.sh script and depending on that
notifies UI to set video-inactive icon. video-recording icon is set,
when the user press button to activate video recording.
if photo was taken before, then temporary directory in tmpfs was clean
and removed after all files were processed. Internal burst_dir
variable contains old value for directory, that doesn't exist anymore.
Let's create new temporary directory, when video recording is started.
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().
If convert is used with dcraw (instead of dcraw_emu), then dcraw
reports error:
1: No such file or directory
Convert doesn't use '$@' (-fbdd 1), so there is no reason to enforce
it here. postprocess.sh already detects dcraw
version (dcraw/dcraw_emu) and sets FBDD option. FBDD is supported only
by dcraw_emu.
Fixes: 8867b41a (Support graphicsmagick as alternative to imagemagick)