summaryrefslogtreecommitdiff
path: root/apps/screens.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/screens.c')
-rw-r--r--apps/screens.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/screens.c b/apps/screens.c
index 91280a72f1..869d081498 100644
--- a/apps/screens.c
+++ b/apps/screens.c
@@ -622,6 +622,8 @@ static const char * id3_get_or_speak_info(int selected_item, void* data,
622 talk_spell(val, true); 622 talk_spell(val, true);
623 break; 623 break;
624 case LANG_ID3_BITRATE: 624 case LANG_ID3_BITRATE:
625 if (!id3->bitrate)
626 return NULL;
625 snprintf(buffer, buffer_len, "%d kbps%s", id3->bitrate, 627 snprintf(buffer, buffer_len, "%d kbps%s", id3->bitrate,
626 id3->vbr ? str(LANG_ID3_VBR) : (const unsigned char*) ""); 628 id3->vbr ? str(LANG_ID3_VBR) : (const unsigned char*) "");
627 val=buffer; 629 val=buffer;
@@ -633,6 +635,8 @@ static const char * id3_get_or_speak_info(int selected_item, void* data,
633 } 635 }
634 break; 636 break;
635 case LANG_ID3_FREQUENCY: 637 case LANG_ID3_FREQUENCY:
638 if (!id3->frequency)
639 return NULL;
636 snprintf(buffer, buffer_len, "%ld Hz", id3->frequency); 640 snprintf(buffer, buffer_len, "%ld Hz", id3->frequency);
637 val=buffer; 641 val=buffer;
638 if(say_it) 642 if(say_it)
@@ -661,6 +665,8 @@ static const char * id3_get_or_speak_info(int selected_item, void* data,
661 talk_spell(val, true); 665 talk_spell(val, true);
662 break; 666 break;
663 case LANG_FILESIZE: /* not LANG_ID3_FILESIZE because the string is shared */ 667 case LANG_FILESIZE: /* not LANG_ID3_FILESIZE because the string is shared */
668 if (!id3->filesize)
669 return NULL;
664 output_dyn_value(buffer, buffer_len, id3->filesize, byte_units, 4, true); 670 output_dyn_value(buffer, buffer_len, id3->filesize, byte_units, 4, true);
665 val=buffer; 671 val=buffer;
666 if(say_it && val) 672 if(say_it && val)