summaryrefslogtreecommitdiffstats
path: root/apps/plugins/test_codec.c
diff options
context:
space:
mode:
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);