diff options
author | wm4 <wm4@nowhere> | 2014-01-25 00:20:26 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-01-25 00:26:35 +0100 |
commit | bb54cf9559985e166a8d9ae7171c90dd87d7d97a (patch) | |
tree | 0d2e7127e11df2324211570c066e36a498efe533 | |
parent | 39b40e1ffb1e3fcf81ec4a4afe88c974adb2efcd (diff) | |
download | mpv-bb54cf9559985e166a8d9ae7171c90dd87d7d97a.tar.bz2 mpv-bb54cf9559985e166a8d9ae7171c90dd87d7d97a.tar.xz |
vo_sdl: fix compilation
Still untested, because now it crashes inside of libSDL for unknown
reasons. (This also happens with mpv git from yesterday - probably an
installation problem, or SDL doing weird things it shouldn't be doing.)
-rw-r--r-- | video/out/vo_sdl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/video/out/vo_sdl.c b/video/out/vo_sdl.c index 915909578e..d2488ccb5d 100644 --- a/video/out/vo_sdl.c +++ b/video/out/vo_sdl.c @@ -423,7 +423,7 @@ static int reconfig(struct vo *vo, struct mp_image_params *params, int flags) for (i = 0; i < vc->renderer_info.num_texture_formats; ++i) for (j = 0; j < sizeof(formats) / sizeof(formats[0]); ++j) if (vc->renderer_info.texture_formats[i] == formats[j].sdl) - if (format == formats[j].mpv) + if (params->imgfmt == formats[j].mpv) texfmt = formats[j].sdl; if (texfmt == SDL_PIXELFORMAT_UNKNOWN) { MP_ERR(vo, "Invalid pixel format\n"); @@ -441,7 +441,7 @@ static int reconfig(struct vo *vo, struct mp_image_params *params, int flags) mp_image_t *texmpi = &vc->texmpi; mp_image_set_size(texmpi, params->w, params->h); - mp_image_setfmt(texmpi, format); + mp_image_setfmt(texmpi, params->imgfmt); switch (texmpi->num_planes) { case 1: case 3: |