diff options
author | Uoti Urpala <uau@mplayer2.org> | 2012-05-03 23:45:57 +0300 |
---|---|---|
committer | Uoti Urpala <uau@mplayer2.org> | 2012-05-03 23:45:57 +0300 |
commit | bb908027178fe8bfd7d6e3fc255dea8c5051cd4a (patch) | |
tree | 792a594b271cc8c4303c2a661dfa10ccbe110066 | |
parent | f64a4e9931428de0f308f6ed0a0144edb8ce9619 (diff) |
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.
-rw-r--r-- | libao2/ao_pulse.c | 2 |
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; |