Commit abfcbbbc authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

gestures: don't query unused texts

parent 63ce4362
...@@ -277,9 +277,9 @@ static void ProcessGesture( intf_thread_t *p_intf ) ...@@ -277,9 +277,9 @@ static void ProcessGesture( intf_thread_t *p_intf )
if( p_input == NULL ) if( p_input == NULL )
break; break;
vlc_list_t list, list2; vlc_list_t list;
var_Change( p_input, "audio-es", VLC_VAR_GETCHOICES, var_Change( p_input, "audio-es", VLC_VAR_GETCHOICES,
&list, &list2 ); &list, (vlc_list_t *)NULL );
if( list.i_count > 1 ) if( list.i_count > 1 )
{ {
...@@ -303,7 +303,7 @@ static void ProcessGesture( intf_thread_t *p_intf ) ...@@ -303,7 +303,7 @@ static void ProcessGesture( intf_thread_t *p_intf )
var_SetInteger( p_input, "audio-es", var_SetInteger( p_input, "audio-es",
list.p_values[i].i_int ); list.p_values[i].i_int );
} }
var_FreeList( &list, &list2 ); var_FreeList( &list, NULL );
vlc_object_release( p_input ); vlc_object_release( p_input );
break; break;
} }
...@@ -314,9 +314,9 @@ static void ProcessGesture( intf_thread_t *p_intf ) ...@@ -314,9 +314,9 @@ static void ProcessGesture( intf_thread_t *p_intf )
if( p_input == NULL ) if( p_input == NULL )
break; break;
vlc_list_t list, list2; vlc_list_t list;
var_Change( p_input, "spu-es", VLC_VAR_GETCHOICES, var_Change( p_input, "spu-es", VLC_VAR_GETCHOICES,
&list, &list2 ); &list, (vlc_list_t *)NULL );
if( list.i_count > 1 ) if( list.i_count > 1 )
{ {
...@@ -340,7 +340,7 @@ static void ProcessGesture( intf_thread_t *p_intf ) ...@@ -340,7 +340,7 @@ static void ProcessGesture( intf_thread_t *p_intf )
var_SetInteger( p_input, "audio-es", var_SetInteger( p_input, "audio-es",
list.p_values[i].i_int ); list.p_values[i].i_int );
} }
var_FreeList( &list, &list2 ); var_FreeList( &list, NULL );
vlc_object_release( p_input ); vlc_object_release( p_input );
break; break;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment