summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-01-29 17:16:36 +0100
committerwm4 <wm4@nowhere>2014-01-29 17:16:36 +0100
commit5c8ec31ba3c838c6047791a1dba2246745112b19 (patch)
tree79f76d8aa66ea90e189b09a3601dc6c044f2a703 /video
parent5035bccb4113a8676b514425e994df20bf060d87 (diff)
downloadmpv-5c8ec31ba3c838c6047791a1dba2246745112b19.tar.bz2
mpv-5c8ec31ba3c838c6047791a1dba2246745112b19.tar.xz
vo_wayland: silence shadowing warning
No real problem.
Diffstat (limited to 'video')
-rw-r--r--video/out/vo_wayland.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/video/out/vo_wayland.c b/video/out/vo_wayland.c
index ac3aefce00..56d3e26e35 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];