summaryrefslogtreecommitdiff
path: root/apps/plugins/lrcplayer.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/lrcplayer.c')
-rw-r--r--apps/plugins/lrcplayer.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/apps/plugins/lrcplayer.c b/apps/plugins/lrcplayer.c
index 4fb94d741e..f0b3e47728 100644
--- a/apps/plugins/lrcplayer.c
+++ b/apps/plugins/lrcplayer.c
@@ -449,7 +449,11 @@ static struct lrc_brpos *calc_brpos(struct lrc_line *lrc_line, int i)
449 int nword; 449 int nword;
450 int word_count, word_width; 450 int word_count, word_width;
451 const unsigned char *str; 451 const unsigned char *str;
452 } sp, cr; 452 }
453#ifndef HAVE_LCD_CHARCELLS
454 sp,
455#endif
456 cr;
453 457
454 lrc_buffer_used = (lrc_buffer_used+3)&~3; /* 4 bytes aligned */ 458 lrc_buffer_used = (lrc_buffer_used+3)&~3; /* 4 bytes aligned */
455 lrc_brpos = (struct lrc_brpos *) &lrc_buffer[lrc_buffer_used]; 459 lrc_brpos = (struct lrc_brpos *) &lrc_buffer[lrc_buffer_used];
@@ -508,15 +512,19 @@ static struct lrc_brpos *calc_brpos(struct lrc_line *lrc_line, int i)
508 cr.nword = lrc_line->nword; 512 cr.nword = lrc_line->nword;
509 lrc_word = lrc_line->words+cr.nword; 513 lrc_word = lrc_line->words+cr.nword;
510 cr.str = (lrc_word-1)->word; 514 cr.str = (lrc_word-1)->word;
515#ifndef HAVE_LCD_CHARCELLS
511 sp.word_count = 0; 516 sp.word_count = 0;
512 sp.word_width = 0; 517 sp.word_width = 0;
513 sp.nword = 0; 518 sp.nword = 0;
514 sp.count = 0; 519 sp.count = 0;
515 sp.width = 0; 520 sp.width = 0;
521#endif
516 do { 522 do {
517 cr.count = 0; 523 cr.count = 0;
518 cr.width = 0; 524 cr.width = 0;
525#ifndef HAVE_LCD_CHARCELLS
519 sp.str = NULL; 526 sp.str = NULL;
527#endif
520 528
521 while (1) 529 while (1)
522 { 530 {