Commit 4fc82e8a authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf
Browse files

Qt4 - Fix previous commit and implement also snapshot button.

parent 72c15d7a
...@@ -285,6 +285,8 @@ void AdvControlsWidget::normal() ...@@ -285,6 +285,8 @@ void AdvControlsWidget::normal()
void AdvControlsWidget::snapshot() void AdvControlsWidget::snapshot()
{ {
vout_thread_t *p_vout = (vout_thread_t *)vlc_object_find( p_intf, VLC_OBJECT_VOUT, FIND_ANYWHERE );
if( p_vout ) vout_Control( p_vout, VOUT_SNAPSHOT );
} }
void AdvControlsWidget::frame(){} void AdvControlsWidget::frame(){}
...@@ -603,13 +605,10 @@ void ControlsWidget::setStatus( int status ) ...@@ -603,13 +605,10 @@ void ControlsWidget::setStatus( int status )
*/ */
void ControlsWidget::fullscreen() void ControlsWidget::fullscreen()
{ {
vlc_object_t *p_vout = (vlc_object_t *)vlc_object_find( p_intf, vout_thread_t *p_vout = (vout_thread_t *)vlc_object_find( p_intf, VLC_OBJECT_VOUT, FIND_CHILD );
VLC_OBJECT_VOUT, FIND_CHILD );
if( p_vout) if( p_vout)
{ {
var_Get( p_vout, "fullscreen", &val ); var_SetBool( p_vout, "fullscreen", !var_GetBool( p_vout, "fullscreen" ) );
val.b_bool = !val.b_bool;
var_Set( p_vout, "fullscreen", val );
} }
} }
......
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