diff options
author | Thomas Martitz <kugel@rockbox.org> | 2011-03-16 10:20:32 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2011-03-16 10:20:32 +0000 |
commit | a0c664850c7524ce829b31c9ddb81fe9c6fd3d3a (patch) | |
tree | 4a8c2ee5826fafa5b23860d1a8f791a34ec6aa5f | |
parent | ccd53953b2102a1675d866f31dcc2a332b2dd9f2 (diff) |
Fix FS#12012 - Radio Art broken since r29259 - Embedded album art support
Forgot to adapt radio art to the new bufopen user_data argument.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29598 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/radio/radioart.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/radio/radioart.c b/apps/radio/radioart.c index 23fb7a33d5..5e501414ca 100644 --- a/apps/radio/radioart.c +++ b/apps/radio/radioart.c @@ -27,6 +27,7 @@ #include "settings.h" #include "radio.h" #include "buffering.h" +#include "playback.h" /* bufopen_user_data */ #include "file.h" #include "kernel.h" #include "string-extra.h" @@ -63,6 +64,7 @@ static int load_radioart_image(struct radioart *ra, const char* preset_name, struct dim *dim) { char path[MAX_PATH]; + struct bufopen_bitmap_data user_data; #ifndef HAVE_NOISY_IDLE_MODE cpu_idle_mode(false); #endif @@ -80,7 +82,9 @@ static int load_radioart_image(struct radioart *ra, const char* preset_name, ra->dim.height = dim->height; ra->dim.width = dim->width; ra->last_tick = current_tick; - ra->handle = bufopen(path, 0, TYPE_BITMAP, &ra->dim); + user_data.embedded_albumart = NULL; + user_data.dim = &ra->dim; + ra->handle = bufopen(path, 0, TYPE_BITMAP, &user_data); if (ra->handle == ERR_BUFFER_FULL) { int i = find_oldest_image(); |