diff options
| author | Thomas Martitz <kugel@rockbox.org> | 2011-09-08 14:53:28 +0000 |
|---|---|---|
| committer | Thomas Martitz <kugel@rockbox.org> | 2011-09-08 14:53:28 +0000 |
| commit | dc14de02c2d1e3f795b21ccc5b8e239fec8c83d5 (patch) | |
| tree | 227c9b03cfdfe5980da1fb897fb305ea525ad672 | |
| parent | 82acdd3e1cad9256e1721cbb3da500453f19724d (diff) | |
| download | rockbox-dc14de02c2d1e3f795b21ccc5b8e239fec8c83d5.zip rockbox-dc14de02c2d1e3f795b21ccc5b8e239fec8c83d5.tar.gz rockbox-dc14de02c2d1e3f795b21ccc5b8e239fec8c83d5.tar.bz2 rockbox-dc14de02c2d1e3f795b21ccc5b8e239fec8c83d5.tar.xz | |
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
| -rw-r--r-- | firmware/target/hosted/sdl/button-sdl.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/target/hosted/sdl/button-sdl.c b/firmware/target/hosted/sdl/button-sdl.c index 323a54a..3d6a379 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); |