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
This commit is contained in:
Thomas Martitz 2011-09-08 14:53:28 +00:00
parent 82acdd3e1c
commit dc14de02c2

View file

@ -292,8 +292,10 @@ void gui_message_loop(void)
do { do {
/* wait for the next event */ /* wait for the next event */
while(SDL_WaitEvent(&event) == 0) if(SDL_WaitEvent(&event) == 0) {
printf("SDL_WaitEvent() error\n"); printf("SDL_WaitEvent() error\n");
return; /* error, out of here */
}
sim_enter_irq_handler(); sim_enter_irq_handler();
quit = event_handler(&event); quit = event_handler(&event);