mirror of
https://code.videolan.org/videolan/vlc
synced 2024-09-04 09:11:33 +02:00
svn merge -r 11182:11183 branches/0.8.2 trunk
This commit is contained in:
parent
53ffe35092
commit
61e1c2f534
@ -835,16 +835,31 @@ static int HandleKey( intf_thread_t *p_intf, int i_key )
|
||||
/* Common control */
|
||||
case 'f':
|
||||
{
|
||||
vout_thread_t *p_vout;
|
||||
if( p_intf->p_sys->p_input )
|
||||
{
|
||||
vout_thread_t *p_vout;
|
||||
p_vout = vlc_object_find( p_intf->p_sys->p_input,
|
||||
VLC_OBJECT_VOUT, FIND_CHILD );
|
||||
if( p_vout )
|
||||
{
|
||||
p_vout->i_changes |= VOUT_FULLSCREEN_CHANGE;
|
||||
var_Get( p_vout, "fullscreen", &val );
|
||||
val.b_bool = !val.b_bool;
|
||||
var_Set( p_vout, "fullscreen", val );
|
||||
vlc_object_release( p_vout );
|
||||
}
|
||||
else
|
||||
{
|
||||
playlist_t *p_playlist;
|
||||
p_playlist = vlc_object_find( p_intf, VLC_OBJECT_PLAYLIST,
|
||||
FIND_ANYWHERE );
|
||||
if( p_playlist )
|
||||
{
|
||||
var_Get( p_playlist, "fullscreen", &val );
|
||||
val.b_bool = !val.b_bool;
|
||||
var_Set( p_playlist, "fullscreen", val );
|
||||
vlc_object_release( p_playlist );
|
||||
}
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user