mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-26 07:05:57 -05:00
Merge pull request #1225 from luusl/fix_pulse_sinklist_cb
Fixed potential crash on pulseaudio sink info callback, when an error occurs
This commit is contained in:
commit
e3213066ce
@ -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