[vlc-devel] [PATCH 13/18] resource: use input control directly for viewpoints

Thomas Guillem thomas at gllm.fr
Fri May 10 16:03:17 CEST 2019


---
 src/input/resource.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/input/resource.c b/src/input/resource.c
index bf5a4d2b57..a4dfa65aaf 100644
--- a/src/input/resource.c
+++ b/src/input/resource.c
@@ -443,8 +443,11 @@ vout_thread_t *input_resource_GetVout(input_resource_t *p_resource,
 
     /* Send original viewpoint to the input in order to update other ESes */
     if (p_resource->p_input != NULL)
-        input_Control(p_resource->p_input, INPUT_SET_INITIAL_VIEWPOINT,
-                      &cfg->fmt->pose);
+    {
+        input_control_param_t param = { .viewpoint = cfg->fmt->pose };
+        input_ControlPush(p_resource->p_input, INPUT_CONTROL_SET_INITIAL_VIEWPOINT,
+                          &param);
+    }
 
 out:
     vlc_mutex_unlock( &p_resource->lock );
-- 
2.20.1



More information about the vlc-devel mailing list