[MPlayer-users] alsa ao setting in .mplayer/config

stan at saticed.me.uk stan at saticed.me.uk
Mon Jul 26 21:10:19 CEST 2004


mplayer(1.0pre5) doesn't seem to pick up the following ao setting in my
.mplayer/config

ao=alsa:noblock:device=hw#1.2

I think this maybe due to # being normally used to represent the start
of a comment.  Changing ao_alsa.c to use a % instead of the # seems to
fix it but I dont know if that is the best fix?

Thanks

-------------- next part --------------
--- libao2/ao_alsa.c.orig	2004-07-17 10:38:14.000000000 +0100
+++ libao2/ao_alsa.c	2004-07-17 10:38:54.000000000 +0100
@@ -199,7 +199,7 @@
   strncpy (dest, src, len);
   while ((tmp = strrchr(dest, '.')))
     tmp[0] = ',';
-  while ((tmp = strrchr(dest, '#')))
+  while ((tmp = strrchr(dest, '%')))
     tmp[0] = ':';
 }
 
@@ -207,7 +207,7 @@
 {
   mp_msg (MSGT_AO, MSGL_FATAL,
            "\n-ao alsa commandline help:\n"
-           "Example: mplayer -ao alsa:mmap:device=hw#0.3\n"
+           "Example: mplayer -ao alsa:mmap:device=hw%0.3\n"
            "  sets mmap-mode and first card fourth device\n"
            "\nOptions:\n"
            "  mmap\n"
@@ -215,7 +215,7 @@
            "  noblock\n"
            "    Sets non-blocking mode\n"
            "  device=<device-name>\n"
-           "    Sets device (change , to . and : to #)\n");
+           "    Sets device (change , to . and : to %)\n");
 }
 
 /*


More information about the MPlayer-users mailing list