svn commit: r425812 - in head/audio/pulseaudio: . files

Jan Beich jbeich at FreeBSD.org
Wed Nov 9 22:06:43 UTC 2016


Author: jbeich
Date: Wed Nov  9 22:06:42 2016
New Revision: 425812
URL: https://svnweb.freebsd.org/changeset/ports/425812

Log:
  audio/pulseaudio: simplify hw.snd.default_unit search
  
  PR:		211684
  Submitted by:	lightside <lightside at gmx.com>
  MFH:		2016Q4 (r425809 bandwagon)

Modified:
  head/audio/pulseaudio/Makefile   (contents, props changed)
  head/audio/pulseaudio/files/patch-src_modules_module-detect.c   (contents, props changed)

Modified: head/audio/pulseaudio/Makefile
==============================================================================
--- head/audio/pulseaudio/Makefile	Wed Nov  9 22:06:26 2016	(r425811)
+++ head/audio/pulseaudio/Makefile	Wed Nov  9 22:06:42 2016	(r425812)
@@ -6,7 +6,7 @@
 
 PORTNAME=	pulseaudio
 PORTVERSION=	9.0
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	audio
 MASTER_SITES=	http://freedesktop.org/software/pulseaudio/releases/
 

Modified: head/audio/pulseaudio/files/patch-src_modules_module-detect.c
==============================================================================
--- head/audio/pulseaudio/files/patch-src_modules_module-detect.c	Wed Nov  9 22:06:26 2016	(r425811)
+++ head/audio/pulseaudio/files/patch-src_modules_module-detect.c	Wed Nov  9 22:06:42 2016	(r425812)
@@ -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;


More information about the svn-ports-head mailing list