mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-07-10 13:29:52 -04:00
rbcodec: Fix build failure with DEBUG but without LOGF
Regression from 39497d1c74
Change-Id: I09ae974b56cd94753caa8bd4630d7ffcfe057846
This commit is contained in:
parent
1c39495ec2
commit
bf8328fbe0
2 changed files with 5 additions and 6 deletions
|
|
@ -249,6 +249,8 @@ void gui_usb_screen_run(bool early_usb, intptr_t seqnum)
|
|||
#ifdef USB_ENABLE_HID
|
||||
usb_keypad_mode = global_settings.usb_keypad_mode;
|
||||
title = &usb_screen_vps_ar[SCREEN_MAIN].title;
|
||||
#else
|
||||
title = NULL;
|
||||
#endif
|
||||
|
||||
FOR_NB_SCREENS(i)
|
||||
|
|
|
|||
|
|
@ -468,8 +468,8 @@ enum codec_status codec_run(void)
|
|||
size_t bytesleft;
|
||||
int consumed;
|
||||
int res;
|
||||
#ifdef LOGF_ENABLE
|
||||
int frame;
|
||||
#if defined(LOGF_ENABLE) || defined(DEBUG)
|
||||
int frame = 0;
|
||||
#endif
|
||||
intptr_t param;
|
||||
|
||||
|
|
@ -505,9 +505,6 @@ enum codec_status codec_run(void)
|
|||
ci->set_elapsed(elapsedtime);
|
||||
|
||||
/* The main decoding loop */
|
||||
#ifdef LOGF_ENABLE
|
||||
frame=0;
|
||||
#endif
|
||||
buf = ci->request_buffer(&bytesleft, MAX_FRAMESIZE);
|
||||
while (bytesleft) {
|
||||
long action = ci->get_command(¶m);
|
||||
|
|
@ -533,7 +530,7 @@ enum codec_status codec_run(void)
|
|||
return CODEC_ERROR;
|
||||
}
|
||||
consumed=fc.gb.index/8;
|
||||
#ifdef LOGF_ENABLE
|
||||
#if defined(LOGF_ENABLE) || defined(DEBUG)
|
||||
frame++;
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue