Do not crash if SDL_SetVideoMode() fails.

pull/2/head
Carl Eugen Hoyos 14 years ago
parent d5708923c2
commit d8ee777021
  1. 2
      ffplay.c

@ -945,7 +945,7 @@ static int video_open(VideoState *is){
#endif
if (!screen) {
fprintf(stderr, "SDL: could not set video mode - exiting\n");
return -1;
do_exit();
}
if (!window_title)
window_title = input_filename;

Loading…
Cancel
Save