[pipe] Error check of b64_decode return value

This commit is contained in:
ejurgensen 2018-12-29 16:50:27 +01:00
parent 103dda29f3
commit 53d7005547
1 changed files with 7 additions and 0 deletions

View File

@ -418,6 +418,13 @@ parse_item(struct input_metadata *m, const char *item)
free(*data);
*data = b64_decode(s);
if (!*data)
{
DPRINTF(E_LOG, L_PLAYER, "Base64 decode of '%s' failed\n", s);
pthread_mutex_unlock(&pipe_metadata_lock);
goto out_error;
}
DPRINTF(E_DBG, L_PLAYER, "Read Shairport metadata (type=%8x, code=%8x): '%s'\n", type, code, *data);