[vlc-commits] input: missing const qualifier, fix warnings

Rémi Denis-Courmont git at videolan.org
Sun Feb 19 21:59:01 CET 2017


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Feb 18 15:31:05 2017 +0200| [ee561d3a0809a24e6c3ee6243e99909fd91d2243] | committer: Rémi Denis-Courmont

input: missing const qualifier, fix warnings

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

 src/input/var.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/input/var.c b/src/input/var.c
index d16fbae..17ea1ea 100644
--- a/src/input/var.c
+++ b/src/input/var.c
@@ -244,7 +244,7 @@ void input_ControlVarStop( input_thread_t *p_input )
 
     if( !demux_Control( p_demux, DEMUX_GET_TITLE, &i_cur_title ) )
     {
-        input_title_t* t = input_priv(p_input)->title[ i_cur_title ];
+        const input_title_t* t = input_priv(p_input)->title[ i_cur_title ];
 
         if( t->i_seekpoint > 1 )
             InputDelCallbacks( p_input, p_input_seekpoint_navigation_callbacks );
@@ -367,7 +367,7 @@ void input_ControlVarNavigation( input_thread_t *p_input )
  *****************************************************************************/
 void input_ControlVarTitle( input_thread_t *p_input, int i_title )
 {
-    input_title_t *t = input_priv(p_input)->title[i_title];
+    const input_title_t *t = input_priv(p_input)->title[i_title];
     vlc_value_t text;
     int  i;
 



More information about the vlc-commits mailing list