obs-studio/obs
jp9000 49501be2a3 UI: Fix potential deadlocks when saving
SaveProject calls obs functions that locks certain mutexes, and because
I made it so that SaveProject was being called inside of certain signal
handlers (which could already be locked in other mutexes), it could
cause a mutual deadlock with other threads.

This fix puts the main project saving code in to SaveProjectDeferred,
then pushes it on to the Qt message queue to safely save outside of
those locks.  It's a function that's perfectly safe to put on the
message queue because it will automatically be disabled in certain
circumstances where it would be unsafe to call, such as on shutdown.

This code will also make it so that the project will not needlessly be
saved more than once if the SaveProjectDeferred call was pushed multiple
times on to the queue.
2015-07-06 17:03:42 -07:00
..
data UI: Toggle password "Show" button text when clicked 2015-07-06 13:38:57 +02:00
dist Add .desktop file for obs on linux 2014-08-05 21:15:31 +02:00
forms UI: Add menu options to open settings folders 2015-07-03 18:35:33 -07:00
adv-audio-control.cpp UI: Fix rounding issues for advanced audio 2015-02-17 21:44:32 +01:00
adv-audio-control.hpp UI: Use grid layout for advanced audio properties 2015-02-11 08:02:56 -08:00
audio-encoders.cpp UI: Add (AAC) audio encoder inspection helpers 2015-07-04 13:30:13 +02:00
audio-encoders.hpp UI: Add (AAC) audio encoder inspection helpers 2015-07-04 13:30:13 +02:00
CMakeLists.txt UI: Add (AAC) audio encoder inspection helpers 2015-07-04 13:30:13 +02:00
crash-report.cpp UI: Add crash report dialog 2015-01-03 02:37:21 -08:00
crash-report.hpp UI: Add crash report dialog 2015-01-03 02:37:21 -08:00
display-helpers.hpp Ensure sizes passed to OBS are actual pixel sizes 2014-04-16 22:39:05 +02:00
double-slider.cpp UI: Fix DoubleSlider behavior for OBS_NUMBER_SLIDER properties 2015-07-01 08:22:04 +02:00
double-slider.hpp UI: Add #pragma once to double slider widget 2015-03-25 14:14:40 -07:00
focus-list.cpp UI: Add QListWidget subclass to emit focus change 2015-03-25 14:11:59 -07:00
focus-list.hpp UI: Add QListWidget subclass to emit focus change 2015-03-25 14:11:59 -07:00
hotkey-edit.cpp UI: Handle empty key combos from QEvents in hotkey dialog 2015-05-15 17:08:25 +02:00
hotkey-edit.hpp UI: Add OBSHotkey{Edit,Label,Widget} 2015-05-11 20:45:27 +02:00
item-widget-helpers.cpp UI: Do not delete via takeItem in ClearListItems 2015-07-02 22:07:39 -07:00
item-widget-helpers.hpp UI: Add item widget helper functions 2015-07-02 17:56:03 -07:00
mute-checkbox.hpp UI: Add 'mute' checkbox style hint 2015-03-25 10:03:24 -07:00
obs-app.cpp UI: Insert timestamps after log newlines 2015-07-06 17:03:31 -07:00
obs-app.hpp UI: Add Profiles 2015-07-03 18:35:30 -07:00
obs.rc UI: Add windows exe icon 2015-04-10 07:27:37 -07:00
platform-osx.mm Move config values from the commandline to obsconfig.h 2014-07-26 14:07:14 +02:00
platform-windows.cpp UI: Add funcs to get windows ver. and disable aero 2015-06-02 17:02:54 -07:00
platform-x11.cpp UI: Fix bug with xinerama on linux 2014-12-22 01:12:58 +01:00
platform.hpp UI: Add funcs to get windows ver. and disable aero 2015-06-02 17:02:54 -07:00
properties-view.cpp UI: Toggle password "Show" button text when clicked 2015-07-06 13:38:57 +02:00
properties-view.hpp UI: Add editable list property to properties view 2015-06-02 17:01:39 -07:00
qt-display.hpp UI: Add override specifier 2015-05-09 01:13:45 +02:00
qt-wrappers.cpp UI: Enable drag&drop reordering for scenes 2015-06-28 05:09:45 +02:00
qt-wrappers.hpp UI: Enable drag&drop reordering for scenes 2015-06-28 05:09:45 +02:00
remote-text.cpp UI: Add RemoteTextThread class 2015-05-24 16:20:12 -07:00
remote-text.hpp UI: Add RemoteTextThread class 2015-05-24 16:20:12 -07:00
slider-absoluteset-style.cpp UI: Add SliderAbsoluteSetStyle class 2015-04-11 07:13:30 -07:00
slider-absoluteset-style.hpp UI: Add SliderAbsoluteSetStyle class 2015-04-11 07:13:30 -07:00
source-label.cpp UI: Add OBSSourceLabel 2015-05-11 20:45:27 +02:00
source-label.hpp UI: Add OBSSourceLabel 2015-05-11 20:45:27 +02:00
source-list-widget.cpp UI: Add drag&drop reordering for the sources list 2015-06-28 05:09:45 +02:00
source-list-widget.hpp UI: Add drag&drop reordering for the sources list 2015-06-28 05:09:45 +02:00
sparkle-updater.mm sparkle-updater: Enable delta update failure fallback 2014-11-01 03:06:26 +01:00
vertical-scroll-area.cpp UI: Fix property scroll area widget not resizing 2015-01-03 07:31:51 -08:00
vertical-scroll-area.hpp UI: Always hide VScrollArea horizontal scroll bar 2015-01-03 07:32:04 -08:00
visibility-checkbox.cpp UI: Add 'visibility' checkbox 2015-03-25 10:03:23 -07:00
visibility-checkbox.hpp UI: Add 'visibility' checkbox 2015-03-25 10:03:23 -07:00
visibility-item-widget.cpp UI: Fix vis. item widget appearance on linux 2015-05-01 03:55:21 -07:00
visibility-item-widget.hpp UI: Add list item widget w/ visibility checkbox 2015-03-25 14:11:58 -07:00
volume-control.cpp UI: Add optional config button to volume controls 2015-06-25 15:55:29 -07:00
volume-control.hpp UI: Add optional config button to volume controls 2015-06-25 15:55:29 -07:00
window-basic-adv-audio.cpp UI: Save project only on new changes 2015-07-02 18:08:55 -07:00
window-basic-adv-audio.hpp UI: Fix crash in advanced audio settings 2015-02-13 13:11:15 +01:00
window-basic-filters.cpp UI: Allow resize without timers 2015-07-03 10:10:58 -07:00
window-basic-filters.hpp UI: Allow resize without timers 2015-07-03 10:10:58 -07:00
window-basic-interaction.cpp UI: Allow resize without timers 2015-07-03 10:10:58 -07:00
window-basic-interaction.hpp UI: Allow resize without timers 2015-07-03 10:10:58 -07:00
window-basic-main-outputs.cpp UI: Create best matching audio encoder for given bitrate 2015-07-04 13:30:13 +02:00
window-basic-main-outputs.hpp UI: Release recording/streaming signals before outputs 2015-07-04 08:00:21 +02:00
window-basic-main-profiles.cpp UI: Fix logging for profiles/scene collections 2015-07-06 17:03:32 -07:00
window-basic-main-scene-collections.cpp UI: Fix logging for profiles/scene collections 2015-07-06 17:03:32 -07:00
window-basic-main.cpp UI: Fix potential deadlocks when saving 2015-07-06 17:03:42 -07:00
window-basic-main.hpp UI: Fix potential deadlocks when saving 2015-07-06 17:03:42 -07:00
window-basic-preview.cpp UI: Allow right-clicking to select preview items 2015-04-10 07:27:32 -07:00
window-basic-preview.hpp (API Change) Remove pointers from all typedefs 2014-09-25 21:48:11 -07:00
window-basic-properties.cpp UI: Allow resize without timers 2015-07-03 10:10:58 -07:00
window-basic-properties.hpp UI: Allow resize without timers 2015-07-03 10:10:58 -07:00
window-basic-settings.cpp UI: Log when user changes settings 2015-07-06 17:03:39 -07:00
window-basic-settings.hpp UI: Store global audio sources in scenes file only 2015-07-02 17:18:47 -07:00
window-basic-source-select.cpp UI: Add basic hotkey integration 2015-05-11 20:45:26 +02:00
window-basic-source-select.hpp (API Change) Remove pointers from all typedefs 2014-09-25 21:48:11 -07:00
window-basic-status-bar.cpp UI: Show remaining reconnect timeout duration 2015-05-10 18:26:09 -07:00
window-basic-status-bar.hpp UI: Show remaining reconnect timeout duration 2015-05-10 18:26:09 -07:00
window-basic-transform.cpp UI: Add basic hotkey integration 2015-05-11 20:45:26 +02:00
window-basic-transform.hpp (API Change) Remove pointers from all typedefs 2014-09-25 21:48:11 -07:00
window-license-agreement.cpp Add license agreement dialog 2014-07-13 11:40:47 -07:00
window-license-agreement.hpp Add license agreement dialog 2014-07-13 11:40:47 -07:00
window-log-reply.cpp UI: Add basic hotkey integration 2015-05-11 20:45:26 +02:00
window-log-reply.hpp Add help menu with log file uploading 2014-05-18 17:44:10 -07:00
window-main.hpp UI: Add Profiles 2015-07-03 18:35:30 -07:00
window-namedialog.cpp UI: Remove whitespace when asking for a name 2015-07-02 17:18:45 -07:00
window-namedialog.hpp Auto suggest scene and source names. 2014-05-12 15:01:51 -04:00
window-projector.cpp UI: Add basic hotkey integration 2015-05-11 20:45:26 +02:00
window-projector.hpp UI: Add right-click context menu to projector 2015-04-13 15:13:44 -07:00
window-remux.cpp UI: Add basic hotkey integration 2015-05-11 20:45:26 +02:00
window-remux.hpp Add UI for remuxing recordings via FFmpeg 2014-10-12 19:56:52 +02:00