mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-26 23:25:56 -05:00
Fixed potential crash on pulseaudio sink info callback, when an error
occurs.
This commit is contained in:
parent
f77161b5c2
commit
8a1f85a14e
@ -388,7 +388,7 @@ sinklist_cb(pa_context *ctx, const pa_sink_info *info, int eol, void *userdata)
|
||||
int i;
|
||||
int pos;
|
||||
|
||||
if (eol > 0)
|
||||
if (eol > 0 || !info)
|
||||
return;
|
||||
|
||||
DPRINTF(E_DBG, L_LAUDIO, "Callback for Pulseaudio sink '%s' (id %" PRIu32 ")\n", info->name, info->index);
|
||||
|
Loading…
Reference in New Issue
Block a user