summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/properties.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/plugins/properties.c b/apps/plugins/properties.c
index e2c83217a4..12ea25f0c0 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_frequency[32];
46 47
47unsigned nseconds; 48unsigned nseconds;
48unsigned long nsize; 49unsigned long nsize;
@@ -69,6 +70,7 @@ static const unsigned char* const props_file[] =
69 ID2P(LANG_PROPERTIES_DISCNUM), str_discnum, 70 ID2P(LANG_PROPERTIES_DISCNUM), str_discnum,
70 ID2P(LANG_PROPERTIES_TRACKNUM), str_tracknum, 71 ID2P(LANG_PROPERTIES_TRACKNUM), str_tracknum,
71 ID2P(LANG_PROPERTIES_DURATION), str_duration, 72 ID2P(LANG_PROPERTIES_DURATION), str_duration,
73 ID2P(LANG_PROPERTIES_FREQUENCY), str_frequency,
72}; 74};
73static const unsigned char* const props_dir[] = 75static const unsigned char* const props_dir[] =
74{ 76{
@@ -151,7 +153,9 @@ static bool file_properties(const char* selected_file)
151 "%s", id3.disc_string ? id3.disc_string : ""); 153 "%s", id3.disc_string ? id3.disc_string : "");
152 rb->snprintf(str_tracknum, sizeof str_tracknum, 154 rb->snprintf(str_tracknum, sizeof str_tracknum,
153 "%s", id3.track_string ? id3.track_string : ""); 155 "%s", id3.track_string ? id3.track_string : "");
154 num_properties += 10; 156 rb->snprintf(str_frequency, sizeof str_frequency,
157 "%ld Hz", id3.frequency ? : 0);
158 num_properties += 11;
155 159
156 if (dur > 0) 160 if (dur > 0)
157 { 161 {