[vlc-commits] gestures: don't query unused texts
Rémi Denis-Courmont
git at videolan.org
Sun Jun 10 12:11:17 CEST 2018
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Jun 9 16:14:35 2018 +0300| [abfcbbbcee513e333cb01d6103280b33e6652806] | committer: Rémi Denis-Courmont
gestures: don't query unused texts
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=abfcbbbcee513e333cb01d6103280b33e6652806
---
modules/control/gestures.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/modules/control/gestures.c b/modules/control/gestures.c
index 15ef58e81c..1b27182618 100644
--- a/modules/control/gestures.c
+++ b/modules/control/gestures.c
@@ -277,9 +277,9 @@ static void ProcessGesture( intf_thread_t *p_intf )
if( p_input == NULL )
break;
- vlc_list_t list, list2;
+ vlc_list_t list;
var_Change( p_input, "audio-es", VLC_VAR_GETCHOICES,
- &list, &list2 );
+ &list, (vlc_list_t *)NULL );
if( list.i_count > 1 )
{
@@ -303,7 +303,7 @@ static void ProcessGesture( intf_thread_t *p_intf )
var_SetInteger( p_input, "audio-es",
list.p_values[i].i_int );
}
- var_FreeList( &list, &list2 );
+ var_FreeList( &list, NULL );
vlc_object_release( p_input );
break;
}
@@ -314,9 +314,9 @@ static void ProcessGesture( intf_thread_t *p_intf )
if( p_input == NULL )
break;
- vlc_list_t list, list2;
+ vlc_list_t list;
var_Change( p_input, "spu-es", VLC_VAR_GETCHOICES,
- &list, &list2 );
+ &list, (vlc_list_t *)NULL );
if( list.i_count > 1 )
{
@@ -340,7 +340,7 @@ static void ProcessGesture( intf_thread_t *p_intf )
var_SetInteger( p_input, "audio-es",
list.p_values[i].i_int );
}
- var_FreeList( &list, &list2 );
+ var_FreeList( &list, NULL );
vlc_object_release( p_input );
break;
}
More information about the vlc-commits
mailing list