summaryrefslogtreecommitdiffstats
path: root/apps/plugins/test_codec.c
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-07-24 19:42:32 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-07-24 19:42:32 -0400
commite49c1af5709bd24ea9c088c6d1676372bd7cc780 (patch)
treeccfb40404fad8503292e1baa4fdd9aef8d1d78eb /apps/plugins/test_codec.c
parent9be5bc4cf0d185f4515174b9ebbb105f73f7c2e3 (diff)
downloadrockbox-e49c1af5709bd24ea9c088c6d1676372bd7cc780.tar.gz
rockbox-e49c1af5709bd24ea9c088c6d1676372bd7cc780.zip
plugins: HAVE_BACKLIGHT in the test plugins
Change-Id: I97d17805ac7d37f10da6a29684102db97448e653
Diffstat (limited to 'apps/plugins/test_codec.c')
-rw-r--r--apps/plugins/test_codec.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/plugins/test_codec.c b/apps/plugins/test_codec.c
index 01efcf69e5..ac0dbf1633 100644
--- a/apps/plugins/test_codec.c
+++ b/apps/plugins/test_codec.c
@@ -274,8 +274,9 @@ static int fill_buffer(int new_offset){
{
log_text("Read failed.",true);
DEBUGF("read fail: got %d bytes, expected %d\n", (int)n, (int)audiobufsize);
+#ifdef HAVE_BACKLIGHT
rb->backlight_on();
-
+#endif
if (fd >= 0)
{
rb->close(fd);
@@ -723,7 +724,9 @@ static enum plugin_status test_track(const char* filename)
/* Be sure it is done */
rb->codec_thread_do_callback(NULL, NULL);
+#ifdef HAVE_BACKLIGHT
rb->backlight_on();
+#endif
log_text(str,true);
if (codec_action == CODEC_ACTION_HALT)
@@ -771,8 +774,9 @@ static enum plugin_status test_track(const char* filename)
res = PLUGIN_OK;
exit:
+#ifdef HAVE_BACKLIGHT
rb->backlight_on();
-
+#endif
if (fd >= 0)
{
rb->close(fd);