summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/lang/english.lang14
-rw-r--r--apps/plugins/properties.c6
2 files changed, 19 insertions, 1 deletions
diff --git a/apps/lang/english.lang b/apps/lang/english.lang
index b795762828..67624aa2a3 100644
--- a/apps/lang/english.lang
+++ b/apps/lang/english.lang
@@ -16066,3 +16066,17 @@
16066 *: "Frequency" 16066 *: "Frequency"
16067 </voice> 16067 </voice>
16068</phrase> 16068</phrase>
16069<phrase>
16070 id: LANG_PROPERTIES_BITRATE
16071 desc: in properties plugin
16072 user: core
16073 <source>
16074 *: "[Bitrate]"
16075 </source>
16076 <dest>
16077 *: "[Bitrate]"
16078 </dest>
16079 <voice>
16080 *: "Bit rate"
16081 </voice>
16082</phrase>
diff --git a/apps/plugins/properties.c b/apps/plugins/properties.c
index 12ea25f0c0..6e706248aa 100644
--- a/apps/plugins/properties.c
+++ b/apps/plugins/properties.c
@@ -43,6 +43,7 @@ char str_year[MAX_PATH];
43char str_discnum[MAX_PATH]; 43char str_discnum[MAX_PATH];
44char str_tracknum[MAX_PATH]; 44char str_tracknum[MAX_PATH];
45char str_duration[32]; 45char str_duration[32];
46char str_bitrate[32];
46char str_frequency[32]; 47char str_frequency[32];
47 48
48unsigned nseconds; 49unsigned nseconds;
@@ -70,6 +71,7 @@ static const unsigned char* const props_file[] =
70 ID2P(LANG_PROPERTIES_DISCNUM), str_discnum, 71 ID2P(LANG_PROPERTIES_DISCNUM), str_discnum,
71 ID2P(LANG_PROPERTIES_TRACKNUM), str_tracknum, 72 ID2P(LANG_PROPERTIES_TRACKNUM), str_tracknum,
72 ID2P(LANG_PROPERTIES_DURATION), str_duration, 73 ID2P(LANG_PROPERTIES_DURATION), str_duration,
74 ID2P(LANG_PROPERTIES_BITRATE), str_bitrate,
73 ID2P(LANG_PROPERTIES_FREQUENCY), str_frequency, 75 ID2P(LANG_PROPERTIES_FREQUENCY), str_frequency,
74}; 76};
75static const unsigned char* const props_dir[] = 77static const unsigned char* const props_dir[] =
@@ -153,9 +155,11 @@ static bool file_properties(const char* selected_file)
153 "%s", id3.disc_string ? id3.disc_string : ""); 155 "%s", id3.disc_string ? id3.disc_string : "");
154 rb->snprintf(str_tracknum, sizeof str_tracknum, 156 rb->snprintf(str_tracknum, sizeof str_tracknum,
155 "%s", id3.track_string ? id3.track_string : ""); 157 "%s", id3.track_string ? id3.track_string : "");
158 rb->snprintf(str_bitrate, sizeof str_bitrate,
159 "%d kbps", id3.bitrate ? : 0);
156 rb->snprintf(str_frequency, sizeof str_frequency, 160 rb->snprintf(str_frequency, sizeof str_frequency,
157 "%ld Hz", id3.frequency ? : 0); 161 "%ld Hz", id3.frequency ? : 0);
158 num_properties += 11; 162 num_properties += 12;
159 163
160 if (dur > 0) 164 if (dur > 0)
161 { 165 {