diff options
author | Christian Soffke <christian.soffke@gmail.com> | 2023-04-12 20:19:58 +0200 |
---|---|---|
committer | Christian Soffke <christian.soffke@gmail.com> | 2023-04-13 03:55:21 +0200 |
commit | 43b0fba75d4312230793f2747700371362204bb6 (patch) | |
tree | edd51dacc2c0218bf415645708386d938b1a1a56 /apps/plugins | |
parent | 6ca57ec389e9dd2141f9c9e73063c7193526dbbd (diff) | |
download | rockbox-43b0fba75d4312230793f2747700371362204bb6.tar.gz rockbox-43b0fba75d4312230793f2747700371362204bb6.zip |
Track Info: Show number of tracks being inspected
Applies to the database and PictureFlow
+ fix red 6ca57ec
Change-Id: If708851ebdfe075e9d6ea3f2e2dd790cc9deac94
Diffstat (limited to 'apps/plugins')
-rw-r--r-- | apps/plugins/lib/mul_id3.c | 2 | ||||
-rw-r--r-- | apps/plugins/pictureflow/pictureflow.c | 2 | ||||
-rw-r--r-- | apps/plugins/properties.c | 8 |
3 files changed, 7 insertions, 5 deletions
diff --git a/apps/plugins/lib/mul_id3.c b/apps/plugins/lib/mul_id3.c index c40a495ecd..edf44f7282 100644 --- a/apps/plugins/lib/mul_id3.c +++ b/apps/plugins/lib/mul_id3.c | |||
@@ -135,7 +135,7 @@ void collect_id3(struct mp3entry *id3, bool is_first_track) | |||
135 | * - Unit for length will be s instead of ms | 135 | * - Unit for length will be s instead of ms |
136 | * | 136 | * |
137 | * Use result only as input for browse_id3, | 137 | * Use result only as input for browse_id3, |
138 | * and set multiple_tracks parameter to true. | 138 | * with the track_ct parameter set to > 1. |
139 | */ | 139 | */ |
140 | void finalize_id3(struct mp3entry *id3) | 140 | void finalize_id3(struct mp3entry *id3) |
141 | { | 141 | { |
diff --git a/apps/plugins/pictureflow/pictureflow.c b/apps/plugins/pictureflow/pictureflow.c index 52f87355b2..b884f3ae0f 100644 --- a/apps/plugins/pictureflow/pictureflow.c +++ b/apps/plugins/pictureflow/pictureflow.c | |||
@@ -4027,7 +4027,7 @@ static int show_id3_info(const char *selected_file) | |||
4027 | if (is_multiple_tracks) | 4027 | if (is_multiple_tracks) |
4028 | finalize_id3(&id3); | 4028 | finalize_id3(&id3); |
4029 | 4029 | ||
4030 | return rb->browse_id3(&id3, 0, 0, NULL, i > 1) ? PLUGIN_USB_CONNECTED : 0; | 4030 | return rb->browse_id3(&id3, 0, 0, NULL, i) ? PLUGIN_USB_CONNECTED : 0; |
4031 | } | 4031 | } |
4032 | 4032 | ||
4033 | 4033 | ||
diff --git a/apps/plugins/properties.c b/apps/plugins/properties.c index 638d7380a5..53af4c5bab 100644 --- a/apps/plugins/properties.c +++ b/apps/plugins/properties.c | |||
@@ -446,9 +446,11 @@ enum plugin_status plugin_start(const void* parameter) | |||
446 | FOR_NB_SCREENS(i) | 446 | FOR_NB_SCREENS(i) |
447 | rb->viewportmanager_theme_enable(i, true, NULL); | 447 | rb->viewportmanager_theme_enable(i, true, NULL); |
448 | 448 | ||
449 | bool usb = props_type == PROPS_ID3 ? rb->browse_id3(&id3, 0, 0, &tm, false) : | 449 | bool usb = props_type == PROPS_ID3 ? rb->browse_id3(&id3, 0, 0, &tm, 1) : |
450 | (props_type == PROPS_MUL_ID3 ? rb->browse_id3(&id3, 0, 0, NULL, mul_id3_count > 1) : | 450 | #ifdef HAVE_TAGCACHE |
451 | browse_file_or_dir(&stats)); | 451 | props_type == PROPS_MUL_ID3 ? rb->browse_id3(&id3, 0, 0, NULL, mul_id3_count) : |
452 | #endif | ||
453 | browse_file_or_dir(&stats); | ||
452 | 454 | ||
453 | FOR_NB_SCREENS(i) | 455 | FOR_NB_SCREENS(i) |
454 | rb->viewportmanager_theme_undo(i, false); | 456 | rb->viewportmanager_theme_undo(i, false); |