vlc | branch: master | Thomas Guillem <tho...@gllm.fr> | Thu Dec  1 17:56:07 
2016 +0100| [5172aa6620248e6d2ff61b8c63120616d4eebeba] | committer: Thomas 
Guillem

libvlc: video: fix viewpoint update when there is no input thread

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

 lib/video.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/lib/video.c b/lib/video.c
index a0882cf..46f9935 100644
--- a/lib/video.c
+++ b/lib/video.c
@@ -312,15 +312,16 @@ int libvlc_video_update_viewpoint( libvlc_media_player_t 
*p_mi,
             return -1;
         }
         vlc_object_release( p_input_thread );
+        return 0;
     }
 
     /* Save the viewpoint in case the input is not created yet */
     if( !b_absolute )
     {
-        p_mi->viewpoint.yaw += p_mi->viewpoint.yaw;
-        p_mi->viewpoint.pitch += p_mi->viewpoint.pitch;
-        p_mi->viewpoint.roll += p_mi->viewpoint.roll;
-        p_mi->viewpoint.fov += p_mi->viewpoint.fov;
+        p_mi->viewpoint.yaw += update.yaw;
+        p_mi->viewpoint.pitch += update.pitch;
+        p_mi->viewpoint.roll += update.roll;
+        p_mi->viewpoint.fov += update.fov;
     }
     else
         p_mi->viewpoint = update;

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to