Browse Source

ffplay: avoid window resize crash on osx with libsdl 1.2.14

Signed-off-by: Marton Balint <cus@passwd.hu>
tags/n0.9
Jean First Marton Balint 14 years ago
parent
commit
72776adfb9
1 changed files with 0 additions and 6 deletions
  1. +0
    -6
      ffplay.c

+ 0
- 6
ffplay.c View File

@@ -943,13 +943,7 @@ static int video_open(VideoState *is){
if(screen && is->width == screen->w && screen->w == w
&& is->height== screen->h && screen->h == h)
return 0;

#ifndef __APPLE__
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) {
fprintf(stderr, "SDL: could not set video mode - exiting\n");
do_exit(is);


Loading…
Cancel
Save