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:
ejurgensen 2021-04-12 06:46:42 -07:00 committed by GitHub
commit e3213066ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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