[vlc-commits] v4l2: fix variable shadowing
Rémi Denis-Courmont
git at videolan.org
Sun Jul 23 16:52:42 CEST 2017
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Jul 23 16:25:25 2017 +0300| [8e2854c86ba377e87311b7bb8f6323f091bd1c9a] | committer: Rémi Denis-Courmont
v4l2: fix variable shadowing
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8e2854c86ba377e87311b7bb8f6323f091bd1c9a
---
modules/access/v4l2/video.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/modules/access/v4l2/video.c b/modules/access/v4l2/video.c
index b8544ea7ec..2bfdf62270 100644
--- a/modules/access/v4l2/video.c
+++ b/modules/access/v4l2/video.c
@@ -504,12 +504,12 @@ int SetupFormat (vlc_object_t *obj, int fd, uint32_t fourcc,
fse.stepwise.step_width, fse.stepwise.step_height);
/* FIXME: slow and dumb */
- for (uint32_t width = fse.stepwise.min_width;
- width <= fse.stepwise.max_width;
- width += fse.stepwise.step_width)
- for (uint32_t height = fse.stepwise.min_height;
- height <= fse.stepwise.max_height;
- height += fse.stepwise.step_height)
+ for (width = fse.stepwise.min_width;
+ width <= fse.stepwise.max_width;
+ width += fse.stepwise.step_width)
+ for (height = fse.stepwise.min_height;
+ height <= fse.stepwise.max_height;
+ height += fse.stepwise.step_height)
{
struct v4l2_fract cur_it;
More information about the vlc-commits
mailing list