[FFmpeg-cvslog] Do not crash if SDL_SetVideoMode() fails.

Carl Eugen Hoyos git at videolan.org
Thu Jun 16 23:32:03 CEST 2011


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Thu Jun 16 23:21:19 2011 +0200| [d8ee777021ac251c48274e7fd9864acb9e19a5cb] | committer: Carl Eugen Hoyos

Do not crash if SDL_SetVideoMode() fails.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d8ee777021ac251c48274e7fd9864acb9e19a5cb
---

 ffplay.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ffplay.c b/ffplay.c
index fa23884..31a6832 100644
--- 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;



More information about the ffmpeg-cvslog mailing list