mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 10:37:38 -04:00
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
This commit is contained in:
parent
ccd53953b2
commit
a0c664850c
1 changed files with 5 additions and 1 deletions
|
@ -27,6 +27,7 @@
|
||||||
#include "settings.h"
|
#include "settings.h"
|
||||||
#include "radio.h"
|
#include "radio.h"
|
||||||
#include "buffering.h"
|
#include "buffering.h"
|
||||||
|
#include "playback.h" /* bufopen_user_data */
|
||||||
#include "file.h"
|
#include "file.h"
|
||||||
#include "kernel.h"
|
#include "kernel.h"
|
||||||
#include "string-extra.h"
|
#include "string-extra.h"
|
||||||
|
@ -63,6 +64,7 @@ static int load_radioart_image(struct radioart *ra, const char* preset_name,
|
||||||
struct dim *dim)
|
struct dim *dim)
|
||||||
{
|
{
|
||||||
char path[MAX_PATH];
|
char path[MAX_PATH];
|
||||||
|
struct bufopen_bitmap_data user_data;
|
||||||
#ifndef HAVE_NOISY_IDLE_MODE
|
#ifndef HAVE_NOISY_IDLE_MODE
|
||||||
cpu_idle_mode(false);
|
cpu_idle_mode(false);
|
||||||
#endif
|
#endif
|
||||||
|
@ -80,7 +82,9 @@ static int load_radioart_image(struct radioart *ra, const char* preset_name,
|
||||||
ra->dim.height = dim->height;
|
ra->dim.height = dim->height;
|
||||||
ra->dim.width = dim->width;
|
ra->dim.width = dim->width;
|
||||||
ra->last_tick = current_tick;
|
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)
|
if (ra->handle == ERR_BUFFER_FULL)
|
||||||
{
|
{
|
||||||
int i = find_oldest_image();
|
int i = find_oldest_image();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue