aboutsummaryrefslogtreecommitdiffstats
path: root/audio/pulseaudio
diff options
context:
space:
mode:
authorjbeich <jbeich@FreeBSD.org>2016-11-10 06:06:42 +0800
committerjbeich <jbeich@FreeBSD.org>2016-11-10 06:06:42 +0800
commitb8b57cb45a8cc93a81813df06201d235a3725d3e (patch)
tree3d90029f68303af6949bbd02242fcffe7a2e9980 /audio/pulseaudio
parentf0f9116e5a6624cfbf8fddc09942eb89605b9989 (diff)
downloadfreebsd-ports-gnome-b8b57cb45a8cc93a81813df06201d235a3725d3e.tar.gz
freebsd-ports-gnome-b8b57cb45a8cc93a81813df06201d235a3725d3e.tar.zst
freebsd-ports-gnome-b8b57cb45a8cc93a81813df06201d235a3725d3e.zip
audio/pulseaudio: simplify hw.snd.default_unit search
PR: 211684 Submitted by: lightside <lightside@gmx.com> MFH: 2016Q4 (r425809 bandwagon)
Diffstat (limited to 'audio/pulseaudio')
-rw-r--r--audio/pulseaudio/Makefile2
-rw-r--r--audio/pulseaudio/files/patch-src_modules_module-detect.c7
2 files changed, 3 insertions, 6 deletions
diff --git a/audio/pulseaudio/Makefile b/audio/pulseaudio/Makefile
index d9da1eadde8a..27e06261c13f 100644
--- a/audio/pulseaudio/Makefile
+++ b/audio/pulseaudio/Makefile
@@ -6,7 +6,7 @@
PORTNAME= pulseaudio
PORTVERSION= 9.0
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= audio
MASTER_SITES= http://freedesktop.org/software/pulseaudio/releases/
diff --git a/audio/pulseaudio/files/patch-src_modules_module-detect.c b/audio/pulseaudio/files/patch-src_modules_module-detect.c
index 0566d3eb567c..fbe74713c8e6 100644
--- a/audio/pulseaudio/files/patch-src_modules_module-detect.c
+++ b/audio/pulseaudio/files/patch-src_modules_module-detect.c
@@ -1,6 +1,6 @@
--- src/modules/module-detect.c.orig 2016-05-10 12:28:04 UTC
+++ src/modules/module-detect.c
-@@ -160,11 +160,48 @@ static int detect_oss(pa_core *c, int ju
+@@ -160,11 +160,45 @@ static int detect_oss(pa_core *c, int ju
continue;
} else if (sscanf(line, "pcm%u: ", &device) == 1) {
@@ -16,10 +16,7 @@
+ if (!pa_endswith(line, "default"))
+ continue;
+
-+ char *p = strrchr(line, '>');
-+
-+ if (p)
-+ p = strchr(p, '(');
++ const char *p = strrchr(line, '(');
+
+ if (!p)
continue;