diff --git a/linphone/mediastreamer2/src/videoout.c b/linphone/mediastreamer2/src/videoout.c index 0aa6bf604..cf25a9b82 100644 --- a/linphone/mediastreamer2/src/videoout.c +++ b/linphone/mediastreamer2/src/videoout.c @@ -226,9 +226,11 @@ static void sdl_display_uninit(MSDisplay *obj){ SDL_FreeSurface(sdl_screen); sdl_screen=NULL; } +#ifdef __linux /*purge the event queue before leaving*/ for(i=0;SDL_PollEvent(&event) && i<100;++i){ } +#endif sdl_show_window(FALSE); }