SOURCES: mpc123-defaults-alsa.patch - use libao default instead of...
qboosh
qboosh at pld-linux.org
Fri Nov 16 21:52:32 CET 2007
Author: qboosh Date: Fri Nov 16 20:52:32 2007 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- use libao default instead of hardcoding oss or alsa (with fallback to oss, which should never happen)
---- Files affected:
SOURCES:
mpc123-defaults-alsa.patch (1.2 -> 1.3)
---- Diffs:
================================================================
Index: SOURCES/mpc123-defaults-alsa.patch
diff -u SOURCES/mpc123-defaults-alsa.patch:1.2 SOURCES/mpc123-defaults-alsa.patch:1.3
--- SOURCES/mpc123-defaults-alsa.patch:1.2 Wed Oct 31 01:04:42 2007
+++ SOURCES/mpc123-defaults-alsa.patch Fri Nov 16 21:52:27 2007
@@ -1,11 +1,25 @@
---- mpc123/mpc123.c.orig 2007-10-30 23:22:26.946985911 +0000
-+++ mpc123/mpc123.c 2007-10-30 23:23:06.440960856 +0000
-@@ -171,7 +171,7 @@
+--- mpc123/mpc123.c.orig 2006-07-31 20:44:09.000000000 +0200
++++ mpc123/mpc123.c 2007-11-16 21:40:52.695911387 +0100
+@@ -171,7 +171,7 @@ int main(int argc, char ** argv){
* specified on the command line
*/
if( !options.ao_driver ){
- options.ao_driver="oss";
-+ options.ao_driver="alsa";
++ options.ao_driver="default";
}
if( !options.ao_dev ){
/* if the driver is set, but not the output device, use
+--- mpc123/ao.c.orig 2006-07-31 16:23:31.000000000 +0200
++++ mpc123/ao.c 2007-11-16 21:43:43.149624990 +0100
+@@ -70,6 +70,11 @@ int mpc123_ao_init(void ** d, mpc_stream
+
+ ao_initialize();
+
++ if( !strcmp(options.ao_driver, "default") ){
++ ao_dinfo = ao_driver_info(ao_default_driver_id());
++ options.ao_driver = (ao_dinfo == NULL) ? "oss" : ao_dinfo->short_name;
++ }
++
+ ao_drvnum=ao_driver_id(options.ao_driver);
+ if( ao_drvnum < 0 )
+ die("No suitable output driver\n");
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/mpc123-defaults-alsa.patch?r1=1.2&r2=1.3&f=u
More information about the pld-cvs-commit
mailing list