Fixed potential crash on pulseaudio sink info callback, when an error

occurs.
This commit is contained in:
luusl 2021-04-12 13:11:47 +02:00
parent f77161b5c2
commit 8a1f85a14e

View File

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