summaryrefslogtreecommitdiff
path: root/apps/gui
diff options
context:
space:
mode:
authorChristian Soffke <christian.soffke@gmail.com>2021-11-19 05:11:13 +0100
committerWilliam Wilgus <me.theuser@yahoo.com>2022-01-22 08:29:40 -0500
commitbc5a6385949c9f0a17173f3512aa9a6db9175803 (patch)
treeb7b2990a4a43d6027f19cbe32a22cd2f0774d0b1 /apps/gui
parentaafe2dd2d14e1ce88b5c9c819277ca0bc98af6e5 (diff)
downloadrockbox-bc5a6385949c9f0a17173f3512aa9a6db9175803.tar.gz
rockbox-bc5a6385949c9f0a17173f3512aa9a6db9175803.zip
Option to switch off album art or to prefer file over embedded
Large embedded album art can cause pauses during playback or when skipping between tracks, especially on older devices, but embedded art is currently loaded even when separately stored smaller image files would be available. A workaround is to remove large album art from the metadata of files. This now adds a setting to either turn off loading of album art completely, or to prefer loading the album art from a separate image file and thus ignore the embedded versions. Change-Id: I22fb581abf56072e35e6c29d72e553747ec1a96a
Diffstat (limited to 'apps/gui')
-rw-r--r--apps/gui/quickscreen.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/gui/quickscreen.c b/apps/gui/quickscreen.c
index b2f5050ab3..a7d07f4e33 100644
--- a/apps/gui/quickscreen.c
+++ b/apps/gui/quickscreen.c
@@ -39,6 +39,9 @@
39#include "option_select.h" 39#include "option_select.h"
40#include "debug.h" 40#include "debug.h"
41#include "shortcuts.h" 41#include "shortcuts.h"
42#ifdef HAVE_ALBUMART
43#include "playback.h"
44#endif
42 45
43 /* 1 top, 1 bottom, 2 on either side, 1 for the icons 46 /* 1 top, 1 bottom, 2 on either side, 1 for the icons
44 * if enough space, top and bottom have 2 lines */ 47 * if enough space, top and bottom have 2 lines */
@@ -411,6 +414,9 @@ int quick_screen_quick(int button_enter)
411 struct gui_quickscreen qs; 414 struct gui_quickscreen qs;
412 bool oldshuffle = global_settings.playlist_shuffle; 415 bool oldshuffle = global_settings.playlist_shuffle;
413 int oldrepeat = global_settings.repeat_mode; 416 int oldrepeat = global_settings.repeat_mode;
417#ifdef HAVE_ALBUMART
418 int old_album_art = global_settings.album_art;
419#endif
414 bool usb = false; 420 bool usb = false;
415 421
416 if (global_settings.shortcuts_replaces_qs) 422 if (global_settings.shortcuts_replaces_qs)
@@ -446,6 +452,10 @@ int quick_screen_quick(int button_enter)
446 else 452 else
447 playlist_sort(NULL, true); 453 playlist_sort(NULL, true);
448 } 454 }
455#ifdef HAVE_ALBUMART
456 if (old_album_art != global_settings.album_art)
457 set_albumart_mode(global_settings.album_art);
458#endif
449 } 459 }
450 return (usb ? 1:0); 460 return (usb ? 1:0);
451} 461}