You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
ffplay: avoid window resize crash on osx with libsdl 1.2.14
Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
committed by
Marton Balint
parent
abb0e4f637
commit
72776adfb9
6
ffplay.c
6
ffplay.c
@@ -943,13 +943,7 @@ static int video_open(VideoState *is){
|
|||||||
if(screen && is->width == screen->w && screen->w == w
|
if(screen && is->width == screen->w && screen->w == w
|
||||||
&& is->height== screen->h && screen->h == h)
|
&& is->height== screen->h && screen->h == h)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
#ifndef __APPLE__
|
|
||||||
screen = SDL_SetVideoMode(w, h, 0, flags);
|
screen = SDL_SetVideoMode(w, h, 0, flags);
|
||||||
#else
|
|
||||||
/* setting bits_per_pixel = 0 or 32 causes blank video on OS X */
|
|
||||||
screen = SDL_SetVideoMode(w, h, 24, flags);
|
|
||||||
#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");
|
||||||
do_exit(is);
|
do_exit(is);
|
||||||
|
Reference in New Issue
Block a user