mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 21:22:39 -05:00
Fix red in 7f4a8891a6
wrap a few things with HAVE_ALBUMART Change-Id: I268e3668604d3810dcf7978a5c11e5d773becd4f
This commit is contained in:
parent
7f4a8891a6
commit
5f3dcaba49
1 changed files with 6 additions and 0 deletions
|
|
@ -881,11 +881,13 @@ static int read_buf(struct jpeg* p_jpeg, size_t count)
|
||||||
return read(p_jpeg->fd, p_jpeg->buf, count);
|
return read(p_jpeg->fd, p_jpeg->buf, count);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_ALBUMART
|
||||||
static int read_buf_id3_unsync(struct jpeg* p_jpeg, size_t count)
|
static int read_buf_id3_unsync(struct jpeg* p_jpeg, size_t count)
|
||||||
{
|
{
|
||||||
count = read(p_jpeg->fd, p_jpeg->buf, count);
|
count = read(p_jpeg->fd, p_jpeg->buf, count);
|
||||||
return id3_unsynchronize(p_jpeg->buf, count, (bool*) &p_jpeg->custom_param);
|
return id3_unsynchronize(p_jpeg->buf, count, (bool*) &p_jpeg->custom_param);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
INLINE void fill_buf(struct jpeg* p_jpeg)
|
INLINE void fill_buf(struct jpeg* p_jpeg)
|
||||||
{
|
{
|
||||||
|
|
@ -2054,11 +2056,15 @@ int clip_jpeg_fd(int fd, int flags,
|
||||||
|
|
||||||
p_jpeg->read_buf = read_buf;
|
p_jpeg->read_buf = read_buf;
|
||||||
|
|
||||||
|
#ifdef HAVE_ALBUMART
|
||||||
if (flags & AA_FLAG_ID3_UNSYNC)
|
if (flags & AA_FLAG_ID3_UNSYNC)
|
||||||
{
|
{
|
||||||
p_jpeg->read_buf = read_buf_id3_unsync;
|
p_jpeg->read_buf = read_buf_id3_unsync;
|
||||||
p_jpeg->custom_param = false;
|
p_jpeg->custom_param = false;
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
(void)flags;
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
status = process_markers(p_jpeg);
|
status = process_markers(p_jpeg);
|
||||||
#ifndef JPEG_FROM_MEM
|
#ifndef JPEG_FROM_MEM
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue