Commit 9ec69555 authored by Max Kellermann's avatar Max Kellermann

pulse: fix segfault without sink name

Commit d692e9 broke configurations without explicit server or sink configuration. Check for getBlockParam()==NULL.
parent bc542958
......@@ -73,8 +73,8 @@ pulse_init(struct audio_output *ao,
pd = pulse_new_data();
pd->ao = ao;
pd->server = g_strdup(server->value);
pd->sink = g_strdup(sink->value);
pd->server = server != NULL ? g_strdup(server->value) : NULL;
pd->sink = sink != NULL ? g_strdup(sink->value) : NULL;
return pd;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment