[vlc-devel] [PATCH 14/18] player: use input control directly for viewpoints
Thomas Guillem
thomas at gllm.fr
Fri May 10 16:03:18 CEST 2019
---
src/input/player.c | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/src/input/player.c b/src/input/player.c
index ae5876955d..b02f9ef717 100644
--- a/src/input/player.c
+++ b/src/input/player.c
@@ -2700,8 +2700,15 @@ vlc_player_UpdateViewpoint(vlc_player_t *player,
{
struct vlc_player_input *input = vlc_player_get_input_locked(player);
if (input)
- input_UpdateViewpoint(input->thread, viewpoint,
- whence == VLC_PLAYER_WHENCE_ABSOLUTE);
+ {
+ input_control_param_t param = { .viewpoint = *viewpoint };
+ if (whence == VLC_PLAYER_WHENCE_ABSOLUTE)
+ input_ControlPush(input->thread, INPUT_CONTROL_SET_VIEWPOINT,
+ ¶m);
+ else
+ input_ControlPush(input->thread, INPUT_CONTROL_UPDATE_VIEWPOINT,
+ ¶m);
+ }
}
bool
--
2.20.1
More information about the vlc-devel
mailing list