You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
Do not crash if SDL_SetVideoMode() fails.
This commit is contained in:
2
ffplay.c
2
ffplay.c
@@ -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;
|
||||||
|
Reference in New Issue
Block a user