[vlc-commits] hotkeys: don't query unused texts

Rémi Denis-Courmont git at videolan.org
Sun Jun 10 12:11:18 CEST 2018


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Jun  9 16:14:53 2018 +0300| [2d605364a65f4da396d6ec2bc7ea0728cc031bd7] | committer: Rémi Denis-Courmont

hotkeys: don't query unused texts

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

 modules/control/hotkeys.c | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/modules/control/hotkeys.c b/modules/control/hotkeys.c
index 220245a55c..5321b6771f 100644
--- a/modules/control/hotkeys.c
+++ b/modules/control/hotkeys.c
@@ -628,22 +628,22 @@ static int PutAction( intf_thread_t *p_intf, input_thread_t *p_input,
             if( p_input )
             {
                 vlc_value_t val;
-                vlc_list_t list, list2;
+                vlc_list_t list;
 
                 var_Get( p_input, "spu-es", &val );
                 var_Change( p_input, "spu-es", VLC_VAR_GETCHOICES,
-                            &list, &list2 );
+                            &list, (vlc_list_t *)NULL );
 
                 if( list.i_count < 1 || val.i_int < 0 )
                 {
                     DisplayMessage( p_vout, _("No active subtitle") );
-                    var_FreeList( &list, &list2 );
+                    var_FreeList( &list, NULL );
                     break;
                 }
                 p_sys->subtitle_delaybookmarks.i_time_subtitle = mdate();
                 DisplayMessage( p_vout,
                                 _("Sub sync: bookmarked subtitle time"));
-                var_FreeList( &list, &list2 );
+                var_FreeList( &list, NULL );
             }
             break;
         case ACTIONID_SUBSYNC_APPLY:
@@ -697,16 +697,16 @@ static int PutAction( intf_thread_t *p_intf, input_thread_t *p_input,
             if( p_input )
             {
                 vlc_value_t val;
-                vlc_list_t list, list2;
+                vlc_list_t list;
 
                 var_Get( p_input, "spu-es", &val );
                 var_Change( p_input, "spu-es", VLC_VAR_GETCHOICES,
-                            &list, &list2 );
+                            &list, (vlc_list_t *)NULL );
 
                 if( list.i_count < 1 || val.i_int < 0 )
                 {
                     DisplayMessage( p_vout, _("No active subtitle") );
-                    var_FreeList( &list, &list2 );
+                    var_FreeList( &list, NULL );
                     break;
                 }
                 int64_t i_delay = var_GetInteger( p_input, "spu-delay" ) + diff;
@@ -715,7 +715,7 @@ static int PutAction( intf_thread_t *p_intf, input_thread_t *p_input,
                 ClearChannels( p_vout, slider_chan );
                 DisplayMessage( p_vout, _( "Subtitle delay %i ms" ),
                                 (int)(i_delay/1000) );
-                var_FreeList( &list, &list2 );
+                var_FreeList( &list, NULL );
             }
             break;
         }
@@ -1337,16 +1337,16 @@ static int PutAction( intf_thread_t *p_intf, input_thread_t *p_input,
             if( p_input )
             {
                 vlc_value_t val;
-                vlc_list_t list, list2;
+                vlc_list_t list;
                 var_Get( p_input, "spu-es", &val );
 
                 var_Change( p_input, "spu-es", VLC_VAR_GETCHOICES,
-                            &list, &list2 );
+                            &list, (vlc_list_t *)NULL );
                 if( list.i_count < 1 || val.i_int < 0 )
                 {
                     DisplayMessage( p_vout,
                                     _("Subtitle position: no active subtitle") );
-                    var_FreeList( &list, &list2 );
+                    var_FreeList( &list, NULL );
                     break;
                 }
 
@@ -1358,7 +1358,7 @@ static int PutAction( intf_thread_t *p_intf, input_thread_t *p_input,
 
                 ClearChannels( p_vout, slider_chan );
                 DisplayMessage( p_vout, _( "Subtitle position %d px" ), i_pos );
-                var_FreeList( &list, &list2 );
+                var_FreeList( &list, NULL );
             }
             break;
         }



More information about the vlc-commits mailing list