ports/multimedia/quodlibet/files/patch-quodlibet_player_gstbe_util.py
Fernando Apesteguía 2f29ab5e28 multimedia/quodlibet re-add with latest version 4.3.0
Repo-copied from @548979.

PR was filed just the day after the port was deleted. The new version works fine
with modern versions of Python. Builds in {11.4,12.1}[amd64,i386] and 13-current
amd64. Run tested fine in 12.1 amd64.

Submitter claims maintainership (already maintaininer for multimedia/playerctl).

ChangeLog: https://quodlibet.readthedocs.io/en/latest/changelog.html#release-4-3-0

PR:	249483
Submitted by:	aly@aaronly.me (maintainer)
2020-10-19 06:46:24 +00:00

20 lines
695 B
Python

--- quodlibet/player/gstbe/util.py.orig 2020-10-15 13:54:35 UTC
+++ quodlibet/player/gstbe/util.py
@@ -28,14 +28,9 @@ def pulse_is_running():
element.set_state(Gst.State.NULL)
return res != Gst.StateChangeReturn.FAILURE
- # In case we don't have it call the pulseaudio binary
- try:
- subprocess.check_call(["pulseaudio", "--check"])
- except subprocess.CalledProcessError:
- return False
- except OSError:
- return False
- return True
+ # NOTE: Don't check with 'pulseaudio --check' because it can't guarantee
+ # Gstreamer works with PA (e.g., when 'pulsesink' not installed).
+ return False
def link_many(elements):