[FFmpeg-devel] [PATCH 1/2] ffplay: avoid window resize crash on osx with libsdl 1.2.14
Jean First
jeanfirst at gmail.com
Wed Oct 19 13:56:34 CEST 2011
On Wed Oct 19 2011 13:54:33 GMT+0200 (CEST), Jean First wrote:
> ---
> ffplay.c | 6 ------
> 1 files changed, 0 insertions(+), 6 deletions(-)
>
> diff --git a/ffplay.c b/ffplay.c
> index f56c2d7..9eeb305 100644
> --- a/ffplay.c
> +++ b/ffplay.c
> @@ -947,13 +947,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);
Wrong patchset sorry. Please ignore.
Jean
More information about the ffmpeg-devel
mailing list