obs-studio/libobs/media-io
Kurt Kartaltepe 36409f01cf libobs/media-io: Use inputs_mutex during close
This code assumed that no one would be racing after we stopped the input
thread, however the obs output thread also races and can free the inputs
during disconnect before we finish closing the video mix.

Instead keep the locks around after stop and use them during close to
avoid races.

Fixes crashes when stopping virtual webcam on linux.

Co-authored-by: Norihiro Kamae <norihiro@nagater.net>
2023-03-27 01:14:32 -07:00
..
audio-io.c libobs: Allow encoders to request unclamped audio mix 2023-03-25 10:38:18 +01:00
audio-io.h libobs: Allow encoders to request unclamped audio mix 2023-03-25 10:38:18 +01:00
audio-math.h libobs/media-io: Add common audio math functions 2015-06-26 03:40:27 -07:00
audio-resampler-ffmpeg.c libobs: Change audio resampler to new channel API 2022-11-10 19:37:07 -05:00
audio-resampler.h clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
format-conversion.c libobs: fix building modules once installed 2019-11-27 14:00:15 -05:00
format-conversion.h clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
frame-rate.h clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
media-io-defs.h libobs: Move macro to internal C file 2017-10-02 07:36:02 -07:00
media-remux.c libobs/media-io: Correctly check codec tag compatibility for out stream 2023-02-15 18:21:09 +01:00
media-remux.h clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
video-fourcc.c clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
video-frame.c libobs: Add missing VIDEO_FORMAT_V210 handling in switch statements 2023-03-26 13:48:01 -04:00
video-frame.h clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
video-io.c libobs/media-io: Use inputs_mutex during close 2023-03-27 01:14:32 -07:00
video-io.h libobs: Add VIDEO_FORMAT_V210 2023-03-26 01:52:44 -07:00
video-matrices.c libobs: Add VIDEO_FORMAT_V210 2023-03-26 01:52:44 -07:00
video-scaler-ffmpeg.c libobs,UI: Add P216/P416 pixel formats 2023-02-21 18:48:44 +01:00
video-scaler.h clang-format: Apply formatting 2019-06-23 23:49:10 -07:00