mirror of
https://github.com/owntone/owntone-server.git
synced 2025-04-01 10:13:45 -04:00
[pipe] Fixup missing condition
This commit is contained in:
parent
e1a0e366cf
commit
cf927e7daa
@ -417,6 +417,11 @@ handle_picture(struct input_metadata *m, uint8_t *data, int data_len)
|
|||||||
ext = ".jpg";
|
ext = ".jpg";
|
||||||
else if (data[0] == 0x89 && data[1] == 0x50)
|
else if (data[0] == 0x89 && data[1] == 0x50)
|
||||||
ext = ".png";
|
ext = ".png";
|
||||||
|
else
|
||||||
|
{
|
||||||
|
DPRINTF(E_LOG, L_PLAYER, "Unsupported picture format from Shairport metadata pipe\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
pict_tmpfile_recreate(&pipe_metadata, ext);
|
pict_tmpfile_recreate(&pipe_metadata, ext);
|
||||||
if (pipe_metadata.pict_tmpfile_fd < 0)
|
if (pipe_metadata.pict_tmpfile_fd < 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user