obs-studio/libobs/util
Georges Basile Stavracas Neto 62a2513369 libobs: Make portal inhibitor asynchronous
Currently, libobs contains two inhibitors: the portal-based one, and the
regular one based on each desktop environment's session manager. The portal
inhibitor takes precedence over the session manager one, when available.

Like the session manager inhibitor, the portal inhibitor performs all D-Bus
calls synchronously in the calling thread, which can lead to stalls. This is
not a good practice.

Make the portal inhibitor asynchronous, by using g_dbus_connection_call()
instead of g_dbus_connection_call_sync(). If an uninhibit call is made
before the previous inhibit call finishes, cancel the inhibit call instead.

Fixes obsproject/obs-studio#5314
2021-09-23 07:35:47 -07:00
..
apple clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
curl Make cert revocation check fails non-fatal on Win 2020-03-13 07:48:47 -07:00
simde libobs: Update to SIMDe 0.7.1 2021-01-02 04:07:55 -08:00
windows libobs: Support move for mismatched ComPtr 2021-09-15 02:52:12 -07:00
AlignedNew.hpp clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
array-serializer.c clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
array-serializer.h clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
base.c clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
base.h clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
bitstream.c decklink: Add ability to ingest/embed cea 708 captions 2020-11-01 22:28:49 -08:00
bitstream.h decklink: Add ability to ingest/embed cea 708 captions 2020-11-01 22:28:49 -08:00
bmem.c libobs/util: Skip pointless free for null 2021-03-31 06:07:11 -07:00
bmem.h clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
c99defs.h libobs: Rename DEPRECATED to OBS_DEPRECATED 2020-01-20 21:44:50 -08:00
cf-lexer.c clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
cf-lexer.h libobs: Fix da_push_back taking a wrong type of item 2021-07-31 15:29:26 -07:00
cf-parser.c clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
cf-parser.h clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
circlebuf.h libobs: Minor fixes / code cleanups 2021-03-04 19:29:33 +01:00
config-file.c libobs/util: Fix pthread mutex leaks 2021-08-23 22:57:10 -07:00
config-file.h clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
crc32.c clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
crc32.h libobs/util: Add function to calculate CRC32 2015-10-04 21:16:27 -07:00
darray.h libobs/util: Fix warnings for about null usages 2021-03-31 06:07:11 -07:00
dstr.c libobs/util: Use is_padding() for wcsdepad as well 2020-07-11 16:15:38 -07:00
dstr.h libobs/util: Fix warnings for about null usages 2021-03-31 06:07:11 -07:00
dstr.hpp clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
file-serializer.c clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
file-serializer.h clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
lexer.c clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
lexer.h clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
pipe-posix.c libobs/util: Retry pipe writes to avoid short-write failures 2020-02-24 12:29:54 +11:00
pipe-windows.c obs-ffmpeg: Add ability to debug ffmpeg-mux subprocess 2020-10-14 18:42:22 -07:00
pipe.h clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
platform-cocoa.m libobs: use clock_gettime_nsec_np() for macOS 2021-02-28 19:00:43 -08:00
platform-nix-dbus.c libobs/util: Split bus name from interface 2021-02-25 12:32:44 -08:00
platform-nix-portal.c libobs: Make portal inhibitor asynchronous 2021-09-23 07:35:47 -07:00
platform-nix.c libobs/util: Fix reading memory usage on Linux 2021-08-09 11:42:34 -07:00
platform-windows.c libobs: Remove dependency on psapi.lib 2021-09-12 14:10:36 -07:00
platform.c libobs: Mark unused parameters 2021-05-08 14:12:54 -07:00
platform.h libobs/util: Remove old ifdefs 2021-08-27 08:12:53 -07:00
profiler.c libobs/util: Fix pthread mutex leaks 2021-08-23 22:57:10 -07:00
profiler.h clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
profiler.hpp clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
serializer.h clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
sse-intrin.h libobs: Restrict emmintrin.h to x86(_64) platform 2021-09-11 15:52:47 -07:00
text-lookup.c clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
text-lookup.h clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
threading-posix.c libobs/util: Fix POSIX event bugs 2020-05-09 14:21:35 -07:00
threading-posix.h libobs/util: Various atomic improvements 2021-02-03 08:51:31 -08:00
threading-windows.c libobs/util: Improve SetThreadDescription usage 2021-08-30 22:33:17 -07:00
threading-windows.h libobs/util: Compiler barriers for ARM64 atomics 2021-03-07 21:11:32 -08:00
threading.h libobs/util: pthread_mutex_init_recursive helper 2021-08-23 22:09:08 -07:00
utf8.c libobs: Fix undefined behavior 2020-08-08 10:41:24 +02:00
utf8.h clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
util.hpp libobs: Add move assignment operator for BPtr 2020-03-19 16:18:51 -07:00
util_uint64.h libobs: Implement and use better scaling function for 64-bit integers 2020-04-05 20:27:28 +02:00
util_uint128.h libobs/util: Fix undefined behavior and optimize util_mul64_64 2018-09-07 17:28:15 -07:00