[prev in list] [next in list] [prev in thread] [next in thread] 

List:       rockbox-cvs
Subject:    Cube plugin fix
From:       gerrit () rockbox ! org
Date:       2013-08-12 8:35:51
Message-ID: 201308120835.r7C8Zp8C027598 () giant ! haxx ! se
[Download RAW message or body]

commit c01a728c5ab321c73e4ef18349199d54bbef7dbb
Author: Lorenzo Miori <memorys60@gmail.com>
Date:   Wed Jul 24 11:56:10 2013 +0200

    Cube plugin fix
    
    This small patch aims to fix a trivial
    problem: when exiting the "cube" plugin
    in a hosted environment (at least on YP-R0)
    this caused the whole program, and consequently
    also the player, to be turned off.
    I don't know why the exit() function was
    used here...
    
    Change-Id: I7b58d4ca5c01c230f2c53204b51ec553c5fe1287
    Reviewed-on: http://gerrit.rockbox.org/321
    Reviewed-by: Bertrik Sikken <bertrik@sikken.nl>

diff --git a/apps/plugins/cube.c b/apps/plugins/cube.c
index 34252e8..d46e20c 100644
--- a/apps/plugins/cube.c
+++ b/apps/plugins/cube.c
@@ -902,7 +902,7 @@ enum plugin_status plugin_start(const void* parameter)
             case CUBE_RC_QUIT:
 #endif
             case CUBE_QUIT:
-                exit(EXIT_SUCCESS);
+                quit = true;
                 break;
 
             default:
_______________________________________________
rockbox-cvs mailing list
rockbox-cvs@cool.haxx.se
http://cool.haxx.se/cgi-bin/mailman/listinfo/rockbox-cvs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic