diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2020-07-24 19:42:32 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-07-24 19:42:32 -0400 |
commit | e49c1af5709bd24ea9c088c6d1676372bd7cc780 (patch) | |
tree | ccfb40404fad8503292e1baa4fdd9aef8d1d78eb /apps/plugins/test_codec.c | |
parent | 9be5bc4cf0d185f4515174b9ebbb105f73f7c2e3 (diff) | |
download | rockbox-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.c | 8 |
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){ | |||
274 | { | 274 | { |
275 | log_text("Read failed.",true); | 275 | log_text("Read failed.",true); |
276 | DEBUGF("read fail: got %d bytes, expected %d\n", (int)n, (int)audiobufsize); | 276 | DEBUGF("read fail: got %d bytes, expected %d\n", (int)n, (int)audiobufsize); |
277 | #ifdef HAVE_BACKLIGHT | ||
277 | rb->backlight_on(); | 278 | rb->backlight_on(); |
278 | 279 | #endif | |
279 | if (fd >= 0) | 280 | if (fd >= 0) |
280 | { | 281 | { |
281 | rb->close(fd); | 282 | rb->close(fd); |
@@ -723,7 +724,9 @@ static enum plugin_status test_track(const char* filename) | |||
723 | 724 | ||
724 | /* Be sure it is done */ | 725 | /* Be sure it is done */ |
725 | rb->codec_thread_do_callback(NULL, NULL); | 726 | rb->codec_thread_do_callback(NULL, NULL); |
727 | #ifdef HAVE_BACKLIGHT | ||
726 | rb->backlight_on(); | 728 | rb->backlight_on(); |
729 | #endif | ||
727 | log_text(str,true); | 730 | log_text(str,true); |
728 | 731 | ||
729 | if (codec_action == CODEC_ACTION_HALT) | 732 | if (codec_action == CODEC_ACTION_HALT) |
@@ -771,8 +774,9 @@ static enum plugin_status test_track(const char* filename) | |||
771 | res = PLUGIN_OK; | 774 | res = PLUGIN_OK; |
772 | 775 | ||
773 | exit: | 776 | exit: |
777 | #ifdef HAVE_BACKLIGHT | ||
774 | rb->backlight_on(); | 778 | rb->backlight_on(); |
775 | 779 | #endif | |
776 | if (fd >= 0) | 780 | if (fd >= 0) |
777 | { | 781 | { |
778 | rb->close(fd); | 782 | rb->close(fd); |