[xiph-commits] r17640 - trunk/ao/src/plugins/pulse

xiphmont at svn.xiph.org xiphmont at svn.xiph.org
Tue Nov 23 05:52:54 PST 2010


Author: xiphmont
Date: 2010-11-23 05:52:53 -0800 (Tue, 23 Nov 2010)
New Revision: 17640

Modified:
   trunk/ao/src/plugins/pulse/ao_pulse.c
Log:
Bugfix to pulse driver when opening without an explicit channel map (it would almost certianly fail).



Modified: trunk/ao/src/plugins/pulse/ao_pulse.c
===================================================================
--- trunk/ao/src/plugins/pulse/ao_pulse.c	2010-11-22 20:55:49 UTC (rev 17639)
+++ trunk/ao/src/plugins/pulse/ao_pulse.c	2010-11-23 13:52:53 UTC (rev 17640)
@@ -229,7 +229,7 @@
     }
 
 
-    if (!(internal->simple = pa_simple_new(internal->server, fn ? t : "libao", PA_STREAM_PLAYBACK, internal->sink, fn ? t2 : "libao playback stream", &ss, &map, NULL, NULL)))
+    if (!(internal->simple = pa_simple_new(internal->server, fn ? t : "libao", PA_STREAM_PLAYBACK, internal->sink, fn ? t2 : "libao playback stream", &ss, (device->input_map?&map:NULL), NULL, NULL)))
         return 0;
 
     device->driver_byte_format = AO_FMT_NATIVE;



More information about the commits mailing list