[MPlayer-dev-eng] [PATCH] -ao alsa9:hw:0,0 fix

Alex Beregszaszi alex at fsn.hu
Fri May 30 20:12:50 CEST 2003


> i could be wrong but it seems that with -ao fallback code it's
> impossible to specify alsa9 devices like "hw:0,1", because mplayer
> treats "1" as secondary ao. i have made two simple patches -- first
> one changes all points followed by a number to commas in alsa device
> name, so it's possible to use hw:0,1 by "-ao alsa9:hw:0.1". second
> patch adds an example to the manpage.

I would use strrchr() instead, and don't forget to check if the dot
isn't the last char in the string, to avoid segfaults.
Could you redone your patch?

Alex Beregszaszi <alex at fsn.hu>
(MPlayer Core Developer -- http://www.mplayerhq.hu/)

More information about the MPlayer-dev-eng mailing list