From d8ee777021ac251c48274e7fd9864acb9e19a5cb Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Thu, 16 Jun 2011 23:21:19 +0200 Subject: [PATCH] Do not crash if SDL_SetVideoMode() fails. --- ffplay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ffplay.c b/ffplay.c index fa23884ed9..31a683216f 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;