summaryrefslogtreecommitdiffstats
path: root/libao2/ao_pulse.c
diff options
context:
space:
mode:
authorUoti Urpala <uau@mplayer2.org>2012-05-03 23:45:57 +0300
committerUoti Urpala <uau@mplayer2.org>2012-05-03 23:45:57 +0300
commitbb908027178fe8bfd7d6e3fc255dea8c5051cd4a (patch)
tree792a594b271cc8c4303c2a661dfa10ccbe110066 /libao2/ao_pulse.c
parentf64a4e9931428de0f308f6ed0a0144edb8ce9619 (diff)
downloadmpv-bb908027178fe8bfd7d6e3fc255dea8c5051cd4a.tar.bz2
mpv-bb908027178fe8bfd7d6e3fc255dea8c5051cd4a.tar.xz
ao_pulse: fix specifying host/sink after 4fed8ad197
Commit 4fed8ad197 ("ao_pulse: convert to new AO API") failed to change the variable name used on one line in suboption handling. This caused a crash due to NULL dereference if you tried to specify any suboptions for the AO (as in "--ao=pulse:foo"). Fix.
Diffstat (limited to 'libao2/ao_pulse.c')
-rw-r--r--libao2/ao_pulse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libao2/ao_pulse.c b/libao2/ao_pulse.c
index ed6e08286a..e48c402fa6 100644
--- a/libao2/ao_pulse.c
+++ b/libao2/ao_pulse.c
@@ -186,7 +186,7 @@ static int init(struct ao *ao, char *params)
ao->priv = priv;
if (params) {
- devarg = strdup(ao_subdevice);
+ devarg = strdup(params);
sink = strchr(devarg, ':');
if (sink)
*sink++ = 0;