]> git.sesse.net Git - ffmpeg/commitdiff
Do not crash if SDL_SetVideoMode() fails.
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Thu, 16 Jun 2011 21:21:19 +0000 (23:21 +0200)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Thu, 16 Jun 2011 21:21:19 +0000 (23:21 +0200)
ffplay.c

index fa23884ed9b172c7d0dca06b62dd94d387f731be..31a683216fc416455090f8472a52a7a113d122dd 100644 (file)
--- a/ffplay.c
+++ b/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;