summaryrefslogtreecommitdiff
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){
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
773exit: 776exit:
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);