summarylogtreecommitdiffstats
path: root/pipewire.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pipewire.patch')
-rw-r--r--pipewire.patch44
1 files changed, 44 insertions, 0 deletions
diff --git a/pipewire.patch b/pipewire.patch
new file mode 100644
index 000000000000..b1c869486437
--- /dev/null
+++ b/pipewire.patch
@@ -0,0 +1,44 @@
+--- a/mkchromecast/pulseaudio.py
++++ b/mkchromecast/pulseaudio.py
+@@ -13,14 +13,8 @@
+ 'pactl',
+ 'load-module',
+ 'module-null-sink',
+- 'sink_name=' + sink_name
+- ]
+-
+- rename_sink = [
+- 'pacmd',
+- 'update-sink-proplist',
+- sink_name,
+- 'device.description=' + sink_name
++ 'sink_name=' + sink_name,
++ "sink_properties=device.description=" + sink_name,
+ ]
+
+ cs = subprocess.Popen(
+@@ -32,12 +26,6 @@
+
+ time.sleep(1)
+
+- rs = subprocess.Popen(
+- rename_sink,
+- stdout=subprocess.PIPE,
+- stderr=subprocess.PIPE
+- )
+- rsoutput, rserror = rs.communicate()
+ return
+
+
+@@ -59,8 +47,9 @@
+
+ def check_sink():
+ check_sink = [
+- 'pacmd',
+- 'list-sinks'
++ 'pactl',
++ 'list',
++ 'sinks'
+ ]
+ chk = subprocess.Popen(
+ check_sink,