mirror of
https://github.com/mpv-player/mpv
synced 2025-03-11 08:37:59 +00: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:
parent
f64a4e9931
commit
bb90802717
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user