Commit 14f37b21 authored by Rémi Duraffort's avatar Rémi Duraffort

Merge branch '1.0-bugfix'

parents c65eebb3 46a33c34
......@@ -322,6 +322,7 @@ static void RunIntf( intf_thread_t *p_intf )
i_count = list.p_list->i_count;
if( i_count <= 1 )
{
var_FreeList( &list, &list2 );
vlc_object_release( p_input );
break;
}
......@@ -342,6 +343,7 @@ static void RunIntf( intf_thread_t *p_intf )
else
i++;
var_Set( p_input, "audio-es", list.p_list->p_values[i] );
var_FreeList( &list, &list2 );
vlc_object_release( p_input );
}
break;
......@@ -365,6 +367,7 @@ static void RunIntf( intf_thread_t *p_intf )
if( i_count <= 1 )
{
vlc_object_release( p_input );
var_FreeList( &list, &list2 );
break;
}
for( i = 0; i < i_count; i++ )
......@@ -386,6 +389,7 @@ static void RunIntf( intf_thread_t *p_intf )
else
i++;
var_Set( p_input, "spu-es", list.p_list->p_values[i] );
var_FreeList( &list, &list2 );
vlc_object_release( p_input );
}
break;
......
......@@ -207,13 +207,7 @@ static void Run( intf_thread_t *p_intf )
ClearChannels( p_intf, p_vout );
vout_OSDMessage( p_intf, DEFAULT_CHAN, _( "Quit" ) );
if( p_aout )
vlc_object_release( p_aout );
if( p_vout )
vlc_object_release( p_vout );
if( p_input )
vlc_object_release( p_input );
continue;
goto cleanup_and_continue;
}
/* Volume and audio actions */
else if( i_action == ACTIONID_VOL_UP )
......@@ -387,6 +381,7 @@ static void Run( intf_thread_t *p_intf )
_("Audio Device: %s"),
list2.p_list->p_values[i].psz_string);
}
var_FreeList( &list, &list2 );
}
/* Input options */
else if( p_input )
......@@ -478,6 +473,7 @@ static void Run( intf_thread_t *p_intf )
_("Audio track: %s"),
list2.p_list->p_values[i].psz_string );
}
var_FreeList( &list, &list2 );
}
else if( i_action == ACTIONID_SUBTITLE_TRACK )
{
......@@ -492,7 +488,8 @@ static void Run( intf_thread_t *p_intf )
{
vout_OSDMessage( VLC_OBJECT(p_input), DEFAULT_CHAN,
_("Subtitle track: %s"), _("N/A") );
continue;
var_FreeList( &list, &list2 );
goto cleanup_and_continue;
}
for( i = 0; i < i_count; i++ )
{
......@@ -516,6 +513,7 @@ static void Run( intf_thread_t *p_intf )
vout_OSDMessage( VLC_OBJECT(p_input), DEFAULT_CHAN,
_("Subtitle track: %s"),
list2.p_list->p_values[i].psz_string );
var_FreeList( &list, &list2 );
}
else if( i_action == ACTIONID_ASPECT_RATIO && p_vout )
{
......@@ -875,6 +873,7 @@ static void Run( intf_thread_t *p_intf )
}
}
}
cleanup_and_continue:
if( p_aout )
vlc_object_release( p_aout );
if( p_vout )
......
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