Richard Stanway 3dbfa4919a libobs: Add stop_audio function, change shutdown order
This fixes a crash that could occur during freeing of sources, as the
audio subsystem was destroyed before sources were released. If a source
had monitoring enabled, it would try to lock a mutex that has been
destroyed, resulting in a crash.

Freeing audio after obs_free_data was also not a solution, as the main
view is freed in obs_free_data, and the audio subsystem is still running
and trying to lock the main view channel mutex which has been freed.

This seems to be the best middle ground, making sure the audio subsystem
is stopped so it no longer tries to access the main view channel, then
freed after obs_free_data.

Fixes https://github.com/obsproject/obs-studio/issues/4409
2021-07-24 22:34:44 +02:00
..
2021-07-18 14:04:44 -07:00
2021-07-18 14:04:44 -07:00
2021-07-06 14:08:28 -07:00
2019-06-23 23:49:10 -07:00
2019-06-23 23:49:10 -07:00
2021-06-10 08:50:41 -07:00
2019-06-23 23:49:10 -07:00
2019-06-23 23:49:10 -07:00
2019-06-23 23:49:10 -07:00
2021-03-16 22:15:16 -07:00
2019-10-14 17:19:38 -07:00
2019-06-23 23:49:10 -07:00
2020-08-10 12:24:01 -07:00
2021-02-09 09:39:04 -03:00