0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 20:03:10 +02:00

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.
This commit is contained in:
Uoti Urpala 2012-05-03 23:45:57 +03:00
parent f64a4e9931
commit bb90802717

View File

@ -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;