[vlc-commits] input: rename vlc_input_event_times variables
Thomas Guillem
git at videolan.org
Wed Apr 14 13:11:59 UTC 2021
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Feb 11 17:27:59 2021 +0100| [e3f38be0ccab13d46041de208bcceb917278f289] | committer: Thomas Guillem
input: rename vlc_input_event_times variables
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e3f38be0ccab13d46041de208bcceb917278f289
---
src/input/input_internal.h | 4 ++--
src/player/input.c | 10 +++++-----
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/input/input_internal.h b/src/input/input_internal.h
index 7279fb0bec..d1d0ed85ad 100644
--- a/src/input/input_internal.h
+++ b/src/input/input_internal.h
@@ -160,8 +160,8 @@ struct vlc_input_event_state
struct vlc_input_event_times
{
- float percentage;
- vlc_tick_t ms;
+ float position;
+ vlc_tick_t time;
vlc_tick_t normal_time;
vlc_tick_t length;
};
diff --git a/src/player/input.c b/src/player/input.c
index 535df00e6c..32f32a960d 100644
--- a/src/player/input.c
+++ b/src/player/input.c
@@ -755,12 +755,12 @@ input_thread_Events(input_thread_t *input_thread,
bool changed = false;
vlc_tick_t system_date = VLC_TICK_INVALID;
- if (event->times.ms != VLC_TICK_INVALID
- && (input->time != event->times.ms
- || input->position != event->times.percentage))
+ if (event->times.time != VLC_TICK_INVALID
+ && (input->time != event->times.time
+ || input->position != event->times.position))
{
- input->time = event->times.ms;
- input->position = event->times.percentage;
+ input->time = event->times.time;
+ input->position = event->times.position;
system_date = vlc_tick_now();
changed = true;
vlc_player_SendEvent(player, on_position_changed,
More information about the vlc-commits
mailing list