From 958455ac39d1f1d4958416265a586efb7debfdfa Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 12 Feb 2014 21:59:37 +0100 Subject: vo_wayland: silence shadowing warning --- video/out/vo_wayland.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'video') diff --git a/video/out/vo_wayland.c b/video/out/vo_wayland.c index 4d994f732d..b40d20fea0 100644 --- a/video/out/vo_wayland.c +++ b/video/out/vo_wayland.c @@ -720,10 +720,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 *entry = is_wayland_format_supported(p, WL_SHM_FORMAT_RGB565); - if (fmt) - p->video_format = fmt; + if (entry) + p->video_format = entry; } buffer_pool_init(p, &p->video_bufpool, (p->use_triplebuffering ? 3 : 2), -- cgit v1.2.3