From bb908027178fe8bfd7d6e3fc255dea8c5051cd4a Mon Sep 17 00:00:00 2001 From: Uoti Urpala Date: Thu, 3 May 2012 23:45:57 +0300 Subject: 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. --- libao2/ao_pulse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3