[vlc-commits] player: use input control directly for viewpoints
Thomas Guillem
git at videolan.org
Thu May 23 10:22:06 CEST 2019
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri May 10 15:46:15 2019 +0200| [bd2f48bbc7eff24b5888d673312af721664a994b] | committer: Thomas Guillem
player: use input control directly for viewpoints
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bd2f48bbc7eff24b5888d673312af721664a994b
---
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 7f8ec2dc06..a1c44c5dc0 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
More information about the vlc-commits
mailing list