1 | #! /bin/sh /usr/share/dpatch/dpatch-run |
---|
2 | ## 31_disable_pulse_harder.dpatch by Mario Limonciello <superm1@ubuntu.com> |
---|
3 | ## |
---|
4 | ## All lines beginning with `## DP:' are a description of the patch. |
---|
5 | ## DP: No description. |
---|
6 | |
---|
7 | @DPATCH@ |
---|
8 | diff -urNad mythtv~/libs/libmyth/audiopulseutil.cpp mythtv/libs/libmyth/audiopulseutil.cpp |
---|
9 | --- mythtv~/libs/libmyth/audiopulseutil.cpp 2009-10-05 13:19:34.000000000 -0500 |
---|
10 | +++ mythtv/libs/libmyth/audiopulseutil.cpp 2009-10-05 13:25:05.000000000 -0500 |
---|
11 | @@ -279,9 +279,12 @@ |
---|
12 | /// \returns true if successful |
---|
13 | bool pulseaudio_suspend(void) |
---|
14 | { |
---|
15 | + setenv("PULSE_INTERNAL","1",0); |
---|
16 | + |
---|
17 | QThread *t = new PAThread(); |
---|
18 | t->start(); |
---|
19 | |
---|
20 | + |
---|
21 | QMutexLocker ml(&pau_lock); |
---|
22 | while (kPA_undefined == pau_value) |
---|
23 | pau_wait.wait(&pau_lock); |
---|