From dc14de02c2d1e3f795b21ccc5b8e239fec8c83d5 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Thu, 8 Sep 2011 14:53:28 +0000 Subject: [PATCH] Exit of SDL_WaitEvent() returns an error. It doesn't appear recoverable, but instead only spams the commandline. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30482 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/hosted/sdl/button-sdl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/firmware/target/hosted/sdl/button-sdl.c b/firmware/target/hosted/sdl/button-sdl.c index 323a54a5ea..3d6a3797cf 100644 --- a/firmware/target/hosted/sdl/button-sdl.c +++ b/firmware/target/hosted/sdl/button-sdl.c @@ -292,8 +292,10 @@ void gui_message_loop(void) do { /* wait for the next event */ - while(SDL_WaitEvent(&event) == 0) + if(SDL_WaitEvent(&event) == 0) { printf("SDL_WaitEvent() error\n"); + return; /* error, out of here */ + } sim_enter_irq_handler(); quit = event_handler(&event); -- 2.11.4.GIT