summaryrefslogtreecommitdiffstats
path: root/libao2/ao_alsa.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-07-30 16:15:06 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-07-30 16:15:06 +0000
commit4deb67c3faeab4dbc063e5442c6d41df78c5de81 (patch)
treeec326f6d107eaf09e6b3bc4f45a117a084e3fb5d /libao2/ao_alsa.c
parente5b67089c763989c5215f8603102415b3f8c3070 (diff)
downloadmpv-4deb67c3faeab4dbc063e5442c6d41df78c5de81.tar.bz2
mpv-4deb67c3faeab4dbc063e5442c6d41df78c5de81.tar.xz
Use = instead if # in ALSA device name, as # irritates our config-parser.
Original patch by stan (at) saticed (dot) me (dot) uk git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12920 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libao2/ao_alsa.c')
-rw-r--r--libao2/ao_alsa.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libao2/ao_alsa.c b/libao2/ao_alsa.c
index 108c3d255f..8729dac257 100644
--- a/libao2/ao_alsa.c
+++ b/libao2/ao_alsa.c
@@ -199,7 +199,7 @@ static void parse_device (char *dest, char *src, int len)
strncpy (dest, src, len);
while ((tmp = strrchr(dest, '.')))
tmp[0] = ',';
- while ((tmp = strrchr(dest, '#')))
+ while ((tmp = strrchr(dest, '=')))
tmp[0] = ':';
}
@@ -207,7 +207,7 @@ static void print_help ()
{
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 @@ static void print_help ()
" 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");
}
/*