vlc | branch: master | Thomas Guillem <[email protected]> | 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 );

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to