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:
parent
d5708923c2
commit
d8ee777021
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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user