[vlc-commits] input: fix variable shadowing
Thomas Guillem
git at videolan.org
Mon Jul 2 14:05:57 CEST 2018
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Jul 2 14:01:46 2018 +0200| [70229ec4836dddf57d6c23345a9305f9c0c2911e] | committer: Thomas Guillem
input: fix variable shadowing
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=70229ec4836dddf57d6c23345a9305f9c0c2911e
---
src/input/input.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/input/input.c b/src/input/input.c
index c904c2e00b..fdc1583d56 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -2246,10 +2246,10 @@ static bool Control( input_thread_t *p_input,
break;
}
- input_control_param_t param;
- param.time.i_val = time_offset;
- param.time.b_fast_seek = false;
- b_force_update = Control( p_input, INPUT_CONTROL_SET_TIME, param );
+ b_force_update =
+ Control( p_input, INPUT_CONTROL_SET_TIME,
+ (input_control_param_t) { .time.i_val = time_offset,
+ .time.b_fast_seek = false } );
break;
}
case INPUT_CONTROL_SET_RENDERER:
More information about the vlc-commits
mailing list