Describe the bug
When a user is attempting to start a screen share while watching someone else's screen share, the stream will get stuck in a loading loop. This issue was apparantly fixed by kaitlynkittyy's merge requests however still persists after updating to 1.5.2.
To Reproduce
- Join a voice channel in a server.
- Watch another users stream by clicking "Watch Stream".
- Attempt to start a screen share at any setting.
Expected behavior
The stream to successfully start instead of getting stuck loading.
Screenshots

Desktop (please complete the following information):
- OS/Distro: Fedora Linux
- Version: 40
- Desktop Environment (linux only): GNOME
Command line output
[67460:0501/211440.939755:ERROR:screencast_portal.cc(367)] Failed to start the screen cast session.
[67460:0501/211440.939771:ERROR:base_capturer_pipewire.cc(81)] ScreenCastPortal failed: 2
Error during screenshare picker Failed to get sources.
(node:67460) UnhandledPromiseRejectionWarning: TypeError: Video was requested, but no video stream was provided
at AsyncFunction.<anonymous> (VCDMain:24:2158)
(Use `vesktop --trace-warnings ...` to show where the warning was created)
(node:67460) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 4)
[67521:0501/211444.289233:ERROR:vaapi_video_decoder.cc(1242)] failed Initialize()ing the frame pool
'loop->recurse > 0' failed at ../src/pipewire/thread-loop.c:426 pw_thread_loop_wait()
[2024-05-01 21:14:48.337] [venmic] [info] [patchbay] (get) running venmic 3.4.2
[2024-05-01 21:14:48.340] [venmic] [info] [patchbay] (handle) found default metadata: 37
[2024-05-01 21:14:48.340] [venmic] [info] [patchbay] (meta_update) speaker name: "alsa_output.pci-0000_2d_00.4.analog-stereo"
'loop->recurse > 0' failed at ../src/pipewire/thread-loop.c:426 pw_thread_loop_wait()
Additional context
The issue seems to be happening with other friends using Vesktop.
Describe the bug
When a user is attempting to start a screen share while watching someone else's screen share, the stream will get stuck in a loading loop. This issue was apparantly fixed by kaitlynkittyy's merge requests however still persists after updating to 1.5.2.
To Reproduce
Expected behavior
The stream to successfully start instead of getting stuck loading.
Screenshots

Desktop (please complete the following information):
Command line output
Additional context
The issue seems to be happening with other friends using Vesktop.