Enitoni / pulseshitter

An overengineered workaround to Discord not supporting audio when screensharing on Linux.
Mozilla Public License 2.0
349 stars 8 forks source link

Improve source restoration #6

Open Enitoni opened 1 year ago

Enitoni commented 1 year ago

Currently, there is an issue where restoring a source will often result in it restoring an older source, because it was the best match, before the relevant one is available again. This race condition makes it harder to reliably find the right source.

It might be a good idea to do some sort of diffing and check only incoming new sources on each check.