summaryrefslogtreecommitdiff
path: root/apps/plugins/properties.c
diff options
context:
space:
mode:
authorChristian Soffke <christian.soffke@gmail.com>2023-04-04 21:35:51 +0200
committerChristian Soffke <christian.soffke@gmail.com>2023-04-13 02:31:32 +0200
commit6ca57ec389e9dd2141f9c9e73063c7193526dbbd (patch)
tree2cedbe36f75467fe9fb266c985c477983fa66629 /apps/plugins/properties.c
parent78c92c5ca85d275e43bacf0d9948ce9b94605f6e (diff)
downloadrockbox-6ca57ec389e9dd2141f9c9e73063c7193526dbbd.tar.gz
rockbox-6ca57ec389e9dd2141f9c9e73063c7193526dbbd.zip
Track Info: Display larger file size and length values
When displaying Track Info for multiple tracks, the value for combined file sizes or length was capped at 2 GiB / ~596h. Limit has been raised by a factor of 1000. Change-Id: I942c64e81864cba3f719c83a24912883fafeb70e
Diffstat (limited to 'apps/plugins/properties.c')
-rw-r--r--apps/plugins/properties.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/apps/plugins/properties.c b/apps/plugins/properties.c
index 27bfe9181a..638d7380a5 100644
--- a/apps/plugins/properties.c
+++ b/apps/plugins/properties.c
@@ -406,14 +406,12 @@ enum plugin_status plugin_start(const void* parameter)
406 if (!rb->strcmp(file, MAKE_ACT_STR(ACTIVITY_DATABASEBROWSER))) /* db table selected */ 406 if (!rb->strcmp(file, MAKE_ACT_STR(ACTIVITY_DATABASEBROWSER))) /* db table selected */
407 { 407 {
408 props_type = PROPS_MUL_ID3; 408 props_type = PROPS_MUL_ID3;
409 init_mul_id3();
410 mul_id3_count = 0; 409 mul_id3_count = 0;
411 410
412 if (!rb->tagtree_subentries_do_action(&mul_id3_add) || mul_id3_count == 0) 411 if (!rb->tagtree_subentries_do_action(&mul_id3_add) || mul_id3_count == 0)
413 return PLUGIN_ERROR; 412 return PLUGIN_ERROR;
414 413 else if (mul_id3_count > 1) /* otherwise, the retrieved id3 can be used as-is */
415 if (mul_id3_count > 1) /* otherwise, the retrieved id3 can be used as-is */ 414 finalize_id3(&id3);
416 write_id3_mul_tracks(&id3);
417 } 415 }
418 else 416 else
419#endif 417#endif
@@ -448,8 +446,8 @@ enum plugin_status plugin_start(const void* parameter)
448 FOR_NB_SCREENS(i) 446 FOR_NB_SCREENS(i)
449 rb->viewportmanager_theme_enable(i, true, NULL); 447 rb->viewportmanager_theme_enable(i, true, NULL);
450 448
451 bool usb = props_type == PROPS_ID3 ? rb->browse_id3(&id3, 0, 0, &tm) : 449 bool usb = props_type == PROPS_ID3 ? rb->browse_id3(&id3, 0, 0, &tm, false) :
452 (props_type == PROPS_MUL_ID3 ? rb->browse_id3(&id3, 0, 0, NULL) : 450 (props_type == PROPS_MUL_ID3 ? rb->browse_id3(&id3, 0, 0, NULL, mul_id3_count > 1) :
453 browse_file_or_dir(&stats)); 451 browse_file_or_dir(&stats));
454 452
455 FOR_NB_SCREENS(i) 453 FOR_NB_SCREENS(i)