obs-studio/libobs
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
..
audio-monitoring linux-pulseaudio: fix race conditions 2020-12-12 12:05:12 -08:00
callback libobs/callback: Fix signal_handler_disconnect_global 2021-07-04 04:32:45 -07:00
data libobs: Add DrawSrgbDecompress default technique 2021-07-11 08:26:05 -07:00
graphics libobs: Add gs_generalize_format helper 2021-07-11 08:26:29 -07:00
media-io libobs: Round up chroma sizes for odd resolutions 2021-07-23 12:02:06 -07:00
util libobs: Add portal inhibitor 2021-07-18 14:04:44 -07:00
CMakeLists.txt libobs: Add portal inhibitor 2021-07-18 14:04:44 -07:00
libobs.pc.in libobs: add ppc64(le) specific flags to libobs.pc 2020-04-27 00:07:18 +02:00
LibObsConfig.cmake.in cmake: Export plugin data destination 2014-09-27 09:41:32 -07:00
LibObsConfigVersion.cmake.in Export libobs cmake target, so external plugins can be built without ugly hacks 2014-05-08 14:43:16 +02:00
obs-audio-controls.c libobs: fix building modules once installed 2019-11-27 14:00:15 -05:00
obs-audio-controls.h clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
obs-audio.c libobs: Fix warnings 2021-07-06 14:08:28 -07:00
obs-avc.c clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
obs-avc.h clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
obs-cocoa.m libobs: Cleanup uses of objc_msgSend in Objective-C code 2021-01-12 10:10:37 -08:00
obs-config.h libobs: Update version to 27.0.1 2021-06-10 08:50:41 -07:00
obs-data.c libobs: Add obs_data_get_last_json() 2021-04-23 12:38:50 -07:00
obs-data.h libobs: Add obs_data_get_last_json() 2021-04-23 12:38:50 -07:00
obs-defs.h clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
obs-display.c clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
obs-encoder.c Merge pull request #2657 from hselasky/improvement 2020-05-21 18:07:53 -07:00
obs-encoder.h UI: Hide encoder if marked internal 2020-02-18 21:37:41 -08:00
obs-ffmpeg-compat.h clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
obs-hotkey-name-map.c clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
obs-hotkey.c libobs, linux-v4l2: Set thread names 2021-01-25 04:13:24 -08:00
obs-hotkey.h clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
obs-hotkeys.h libobs: Remove _WIN32 ifdef from enum 2019-11-17 20:30:42 -08:00
obs-interaction.h clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
obs-internal.h libobs: Plumb texcoord hint to reduce GPU cost 2021-07-11 08:26:29 -07:00
obs-missing-files.c libobs: Add missing file API to sources 2021-01-17 10:31:58 +13:00
obs-missing-files.h libobs: Add missing file API to sources 2021-01-17 10:31:58 +13:00
obs-module.c libobs: Fix memory overrun if libobs version mismatches 2021-07-04 08:49:42 -07:00
obs-module.h libobs: Add functions to get locale text from modules 2020-08-10 12:24:01 -07:00
obs-nix-platform.c libobs: Introduce the concept of a Unix platform 2021-02-01 19:05:10 -03:00
obs-nix-platform.h libobs: Add a Wayland platform 2021-02-09 09:39:04 -03:00
obs-nix-wayland.c libobs: Add a Wayland platform 2021-02-09 09:39:04 -03:00
obs-nix-wayland.h libobs: Add a Wayland platform 2021-02-09 09:39:04 -03:00
obs-nix-x11.c libobs: Fix crash when no context 2021-03-10 20:14:01 -08:00
obs-nix-x11.h libobs/nix: Move X11-specific code to obs-nix-x11.c 2021-02-01 19:03:43 -03:00
obs-nix.c libobs/nix: List Flatpak search paths 2021-07-08 10:53:15 -07:00
obs-nix.h libobs/nix: Move X11-specific code to obs-nix-x11.c 2021-02-01 19:03:43 -03:00
obs-output-delay.c libobs: Minor fixes / code cleanups 2021-03-04 19:29:33 +01:00
obs-output.c libobs: Fix bad type and size mismatch 2020-11-04 04:45:07 -08:00
obs-output.h libobs: Implement pausing of outputs 2019-07-07 16:38:22 -07:00
obs-properties.c libobs, UI: Add support for button properties as links 2021-07-09 17:32:09 +12:00
obs-properties.h libobs, UI: Add support for button properties as links 2021-07-09 17:32:09 +12:00
obs-scene.c libobs: Fix stack buffer overflow in build_current_order_info 2021-07-20 08:46:53 -07:00
obs-scene.h UI: Add visibility transitions 2021-03-16 22:15:16 -07:00
obs-service.c libobs: Change service max res. to res. list 2020-11-13 18:22:53 -08:00
obs-service.h libobs: Change service max res. to res. list 2020-11-13 18:22:53 -08:00
obs-source-deinterlace.c libobs: Deinterlace as linear SRGB when needed 2021-01-21 07:42:57 -08:00
obs-source-transition.c libobs: transition: ignore sources with ts=0 2021-02-02 13:28:54 -08:00
obs-source.c libobs: Round up chroma sizes for odd resolutions 2021-07-23 12:02:06 -07:00
obs-source.h libobs, obs-filters: SRGB backwards compatibility 2021-05-03 01:19:56 -07:00
obs-ui.h docs/sphinx: Fix various typos 2019-10-14 17:19:38 -07:00
obs-video-gpu-encode.c libobs: Fix race condition 2019-11-05 12:02:54 -08:00
obs-video.c libobs: Final downsample with SRGB formats 2021-01-21 07:42:57 -08:00
obs-view.c clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
obs-win-crash-handler.c libobs: Include thread names in thread traces 2021-02-03 13:08:57 -08:00
obs-windows.c libobs: Log Windows 10 Hardware GPU Scheduler 2020-08-26 22:57:52 +02:00
obs.c libobs: Add stop_audio function, change shutdown order 2021-07-24 22:34:44 +02:00
obs.h libobs: Plumb texcoord hint to reduce GPU cost 2021-07-11 08:26:29 -07:00
obs.hpp libobs: Add OBSRef::Get() 2020-08-10 12:24:01 -07:00
obsconfig.h.in libobs: Add a Wayland platform 2021-02-09 09:39:04 -03:00