obs-studio/plugins
Georges Basile Stavracas Neto ef0540c0d7 linux-capture: Lookup session handle without typechecks
g_variant_lookup() obligatorily receives the type of the variant to
lookup. This function is used when retrieving the session handle
from the portal's response, and the variant type passed is "s" (a
string).

However, xdg-desktop-portal had a bug: the documentation explicitly
mentions that the session handle is an object path (of variant type
"o"), but it passed a string (of variant type "s"). This mismatch
was fixed in the xdg-desktop-portal release 1.10 [1], but that broke
the PipeWire capture code, which was passing specifically the "s"
value to the variant lookup.

Fix this by not checking the variant type at all. Object paths ("o")
are simply strings with a few extra checks, and we don't actually need
to perform these checks.

This change probably broke other apps, and that makes me extremely sad :(

[1] https://github.com/flatpak/xdg-desktop-portal/pull/609
2021-09-17 08:36:56 -07:00
..
coreaudio-encoder Update translations from Crowdin 2021-06-11 07:18:15 -07:00
decklink decklink: Cleanup hide/show code 2021-08-21 12:53:28 -05:00
enc-amf@9ceb1254c3 Update translations from Crowdin 2021-05-30 20:33:35 +02:00
image-source image-source: Fix gif not working in studio mode 2021-08-23 08:01:21 -07:00
linux-alsa Update translations from Crowdin 2021-06-11 07:18:15 -07:00
linux-capture linux-capture: Lookup session handle without typechecks 2021-09-17 08:36:56 -07:00
linux-jack Update translations from Crowdin 2021-06-11 07:18:15 -07:00
linux-pulseaudio Update translations from Crowdin 2021-06-11 07:18:15 -07:00
linux-v4l2 Update translations from Crowdin 2021-06-11 07:18:15 -07:00
mac-avcapture Update translations from Crowdin 2021-06-11 07:18:15 -07:00
mac-capture mac-capture: Update display names 2021-06-30 01:52:04 -07:00
mac-syphon mac-syphon: Use DrawOpaque as necessary 2021-07-04 10:35:54 -07:00
mac-virtualcam mac-virtualcam: Move DAL plugin to plugin data directory 2021-08-17 08:21:32 -07:00
mac-vth264 Update translations from Crowdin 2021-06-11 07:18:15 -07:00
obs-browser@3d926c7804 obs-browser: Disable Qt tooltip on old Qt versions 2021-08-24 12:08:21 +10:00
obs-ffmpeg Revert "obs-ffmpeg, obs-qsv11: Disable dynamic bitrate support" 2021-08-23 18:26:37 -07:00
obs-filters obs-filters: Fix NvAFX mutex leak 2021-08-23 23:15:11 -07:00
obs-libfdk Update translations from Crowdin 2021-06-11 07:18:15 -07:00
obs-outputs obs-outputs: Add WIN32_LEAN_AND_MEAN to avoid symbol clash 2021-09-11 15:50:06 -07:00
obs-qsv11 Revert "obs-ffmpeg, obs-qsv11: Disable dynamic bitrate support" 2021-08-23 18:26:37 -07:00
obs-text Update translations from Crowdin 2021-06-11 07:18:15 -07:00
obs-transitions UI,obs-transitions: Enable missing files dialog for stinger transition 2021-08-16 08:29:54 -07:00
obs-vst@aaa7b7fa32 Update translations from Crowdin 2021-05-30 20:33:35 +02:00
obs-x264 Update translations from Crowdin 2021-06-11 07:18:15 -07:00
oss-audio Update translations from Crowdin 2021-06-11 07:18:15 -07:00
rtmp-services rtmp-services: Add Disciple Media 2021-09-08 06:58:25 -07:00
sndio Update translations from Crowdin 2021-06-11 07:18:15 -07:00
text-freetype2 text-freetype2: Add alpha channel property 2021-07-04 12:16:09 -07:00
vlc-video Update translations from Crowdin 2021-06-11 07:18:15 -07:00
win-capture win-capture: Remove dependency on psapi.lib 2021-09-12 14:10:36 -07:00
win-dshow win-dshow: Avoid redundant string conversions 2021-08-18 23:45:11 +02:00
win-ivcam Merge pull request #1944 from WizardCM/windows-rc-definition 2020-04-18 18:27:22 -05:00
win-mf Update translations from Crowdin 2021-06-11 07:18:15 -07:00
win-wasapi Update translations from Crowdin 2021-06-11 07:18:15 -07:00
CMakeLists.txt plugins: Set obs-vst as a default requirement 2021-04-09 06:44:53 -07:00