mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
audio/pulseaudio: simplify hw.snd.default_unit search
PR: 211684 Submitted by: lightside <lightside@gmx.com> MFH: 2016Q4 (r425809 bandwagon)
This commit is contained in:
parent
8cf2ecce41
commit
4365088e18
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=425812
2 changed files with 3 additions and 6 deletions
|
@ -6,7 +6,7 @@
|
|||
|
||||
PORTNAME= pulseaudio
|
||||
PORTVERSION= 9.0
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= audio
|
||||
MASTER_SITES= http://freedesktop.org/software/pulseaudio/releases/
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue