[pipe] Fixup missing condition

This commit is contained in:
ejurgensen 2019-09-20 21:51:09 +02:00
parent e1a0e366cf
commit cf927e7daa
1 changed files with 5 additions and 0 deletions

View File

@ -417,6 +417,11 @@ handle_picture(struct input_metadata *m, uint8_t *data, int data_len)
ext = ".jpg";
else if (data[0] == 0x89 && data[1] == 0x50)
ext = ".png";
else
{
DPRINTF(E_LOG, L_PLAYER, "Unsupported picture format from Shairport metadata pipe\n");
return;
}
pict_tmpfile_recreate(&pipe_metadata, ext);
if (pipe_metadata.pict_tmpfile_fd < 0)