1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-02-09 14:14:39 +02:00

Do not crash if SDL_SetVideoMode() fails.

This commit is contained in:
Carl Eugen Hoyos 2011-06-16 23:21:19 +02:00
parent d5708923c2
commit d8ee777021

View File

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