From 72776adfb9f0b856198a770acdec97d523c01208 Mon Sep 17 00:00:00 2001 From: Jean First Date: Wed, 12 Oct 2011 21:54:33 +0200 Subject: [PATCH] ffplay: avoid window resize crash on osx with libsdl 1.2.14 Signed-off-by: Marton Balint --- ffplay.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/ffplay.c b/ffplay.c index a0c8487637d..b41820c51bd 100644 --- 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); -- 2.39.5