Commit be89546f authored by Thomas Guillem's avatar Thomas Guillem

qt: always enable subtitle selection menu

This was incoherent with audio/video selection menus. Indeed, audio/video
selection menus are always visible (regardless of vout/aout state).

This allows users to change the spu track when using a sout (and a renderer).
parent 2a8dda4c
......@@ -1309,16 +1309,6 @@ void VLCMenuBar::UpdateItem( intf_thread_t *p_intf, QMenu *menu,
action->setData( psz_var );
}
/* Some specific stuff */
bool forceDisabled = false;
if( !strcmp( psz_var, "spu-es" ) )
{
vout_thread_t *p_vout = THEMIM->getVout();
forceDisabled = ( p_vout == NULL );
if( p_vout )
vlc_object_release( p_vout );
}
if( i_type & VLC_VAR_HASCHOICE )
{
/* Append choices menu */
......@@ -1334,8 +1324,6 @@ void VLCMenuBar::UpdateItem( intf_thread_t *p_intf, QMenu *menu,
action->setEnabled(
CreateChoicesMenu( submenu, psz_var, p_object ) == 0 );
if( forceDisabled )
action->setEnabled( false );
}
else
{
......
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