[vlc-commits] input: send initial video viewpoint to the input

Thomas Guillem git at videolan.org
Tue Jul 25 16:42:53 CEST 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Jul 25 10:08:14 2017 +0200| [9d4aaaa8f4274f0b4a81830fdac8a9be00dccae4] | committer: Thomas Guillem

input: send initial video viewpoint to the input

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

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

diff --git a/src/input/resource.c b/src/input/resource.c
index 1dd1937b5b..2a57ac075f 100644
--- a/src/input/resource.c
+++ b/src/input/resource.c
@@ -244,6 +244,11 @@ static vout_thread_t *RequestVout( input_resource_t *p_resource,
 
         DisplayVoutTitle( p_resource, p_vout );
 
+        /* 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,
+                           &p_fmt->pose );
+
         vlc_mutex_lock( &p_resource->lock_hold );
         TAB_APPEND( p_resource->i_vout, p_resource->pp_vout, p_vout );
         vlc_mutex_unlock( &p_resource->lock_hold );



More information about the vlc-commits mailing list