OSDN Git Service

ffplay: avoid window resize crash on osx with libsdl 1.2.14
authorJean First <jeanfirst@gmail.com>
Wed, 12 Oct 2011 19:54:33 +0000 (21:54 +0200)
committerMarton Balint <cus@passwd.hu>
Sun, 16 Oct 2011 17:28:22 +0000 (19:28 +0200)
Signed-off-by: Marton Balint <cus@passwd.hu>
ffplay.c

index a0c8487..b41820c 100644 (file)
--- a/ffplay.c
+++ b/ffplay.c
@@ -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);