diff options
author | wm4 <wm4@nowhere> | 2014-02-12 21:59:37 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-02-12 22:00:23 +0100 |
commit | 958455ac39d1f1d4958416265a586efb7debfdfa (patch) | |
tree | c1b6c738b04fa61415f2414341590795d2328c22 /video/out | |
parent | b8901bf04dad9f1bd9e4fcad4103b4e580606fce (diff) | |
download | mpv-958455ac39d1f1d4958416265a586efb7debfdfa.tar.bz2 mpv-958455ac39d1f1d4958416265a586efb7debfdfa.tar.xz |
vo_wayland: silence shadowing warning
Diffstat (limited to 'video/out')
-rw-r--r-- | video/out/vo_wayland.c | 6 |
1 files changed, 3 insertions, 3 deletions
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), |