From 3f4ed8920f75bf375fb9052fe7df6cfd3299a71c Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 29 Jan 2014 17:16:36 +0100 Subject: vo_wayland: silence shadowing warning No real problem. --- video/out/vo_wayland.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/video/out/vo_wayland.c b/video/out/vo_wayland.c index ffda53373d..936758be02 100644 --- a/video/out/vo_wayland.c +++ b/video/out/vo_wayland.c @@ -621,10 +621,10 @@ static int reconfig(struct vo *vo, struct mp_image_params *fmt, int flags) // overides alpha // use rgb565 if performance is your main concern if (p->use_rgb565) { - const struct fmtentry *fmt = + const struct fmtentry *mp_fmt = is_wayland_format_supported(p, WL_SHM_FORMAT_RGB565); - if (fmt) - p->pref_format = fmt; + if (mp_fmt) + p->pref_format = mp_fmt; } p->bytes_per_pixel = mp_imgfmt_get_desc(p->pref_format->mp_fmt).bytes[0]; -- cgit v1.2.3