[vlc-commits] input: remove INPUT_*_VIEWPOINT

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


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri May 10 15:46:59 2019 +0200| [e364f495997ce23f924f58293649c29cc21e96c5] | committer: Thomas Guillem

input: remove INPUT_*_VIEWPOINT

This is now directly handled by the player.

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

 include/vlc_input.h | 22 ----------------------
 src/input/control.c | 15 ---------------
 2 files changed, 37 deletions(-)

diff --git a/include/vlc_input.h b/include/vlc_input.h
index 1c97817714..6191ccd309 100644
--- a/include/vlc_input.h
+++ b/include/vlc_input.h
@@ -552,10 +552,6 @@ enum input_query_e
     /** Activate disc Root Menu. res=can fail */
     INPUT_NAV_MENU,
 
-    /* Viewpoint */
-    INPUT_UPDATE_VIEWPOINT, /* arg1=(const vlc_viewpoint_t*), arg2=bool b_absolute */
-    INPUT_SET_INITIAL_VIEWPOINT, /* arg1=(const vlc_viewpoint_t*) */
-
     /* External clock managments */
     INPUT_GET_PCR_SYSTEM,   /* arg1=vlc_tick_t *, arg2=vlc_tick_t *       res=can fail */
     INPUT_MODIFY_PCR_SYSTEM,/* arg1=int absolute, arg2=vlc_tick_t   res=can fail */
@@ -621,24 +617,6 @@ VLC_API void input_SetPosition( input_thread_t *, float f_position, bool b_fast
 VLC_API input_item_t* input_GetItem( input_thread_t * ) VLC_USED;
 
 /**
- * Update the viewpoint of the input thread. The viewpoint will be applied to
- * all vouts and aouts.
- *
- * @param p_input an input thread
- * @param p_viewpoint the viewpoint value
- * @param b_absolute if true replace the old viewpoint with the new one. If
- * false, increase/decrease it.
- * @return VLC_SUCCESS or a VLC error code
- */
-static inline int input_UpdateViewpoint( input_thread_t *p_input,
-                                         const vlc_viewpoint_t *p_viewpoint,
-                                         bool b_absolute )
-{
-    return input_Control( p_input, INPUT_UPDATE_VIEWPOINT, p_viewpoint,
-                          b_absolute );
-}
-
-/**
  * \see input_clock_GetSystemOrigin
  */
 static inline int input_GetPcrSystem( input_thread_t *p_input, vlc_tick_t *pi_system, vlc_tick_t *pi_delay )
diff --git a/src/input/control.c b/src/input/control.c
index 2a1d91bc4e..0a979663dd 100644
--- a/src/input/control.c
+++ b/src/input/control.c
@@ -81,21 +81,6 @@ int input_vaControl( input_thread_t *p_input, int i_query, va_list args )
                                + INPUT_CONTROL_NAV_ACTIVATE, NULL );
             return VLC_SUCCESS;
 
-        case INPUT_UPDATE_VIEWPOINT:
-        case INPUT_SET_INITIAL_VIEWPOINT:
-        {
-            input_control_param_t param;
-            param.viewpoint = *va_arg( args, const vlc_viewpoint_t* );
-            if ( i_query == INPUT_SET_INITIAL_VIEWPOINT )
-                input_ControlPush( p_input, INPUT_CONTROL_SET_INITIAL_VIEWPOINT,
-                                   &param );
-            else if ( va_arg( args, int ) )
-                input_ControlPush( p_input, INPUT_CONTROL_SET_VIEWPOINT, &param);
-            else
-                input_ControlPush( p_input, INPUT_CONTROL_UPDATE_VIEWPOINT, &param );
-            return VLC_SUCCESS;
-        }
-
         case INPUT_GET_PCR_SYSTEM:
         {
             vlc_tick_t *pi_system = va_arg( args, vlc_tick_t * );



More information about the vlc-commits mailing list