[vlc-commits] resource: use input control directly for viewpoints

Thomas Guillem git at videolan.org
Thu May 23 10:22:05 CEST 2019


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri May 10 15:45:50 2019 +0200| [818a4d7d0de86e08cec372197d98fd3f594230a7] | committer: Thomas Guillem

resource: use input control directly for viewpoints

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=818a4d7d0de86e08cec372197d98fd3f594230a7
---

 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 497d3cc3f0..dd55556041 100644
--- a/src/input/resource.c
+++ b/src/input/resource.c
@@ -436,8 +436,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 );



More information about the vlc-commits mailing list