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

b_menu_change: remove write-only variable

parent 9f3acf60
...@@ -72,7 +72,6 @@ struct intf_thread_t ...@@ -72,7 +72,6 @@ struct intf_thread_t
/* XXX: new message passing stuff will go here */ /* XXX: new message passing stuff will go here */
vlc_mutex_t change_lock; vlc_mutex_t change_lock;
bool b_menu_change;
bool b_menu; bool b_menu;
}; };
......
...@@ -200,16 +200,8 @@ static int Manage( vout_thread_t *p_vout ) ...@@ -200,16 +200,8 @@ static int Manage( vout_thread_t *p_vout )
{ {
case AA_MOUSE: case AA_MOUSE:
aa_getmouse( p_vout->p_sys->aa_context, &x, &y, &b ); aa_getmouse( p_vout->p_sys->aa_context, &x, &y, &b );
if ( b & AA_BUTTON3 ) /*if ( b & AA_BUTTON3 )
{ trigger contextual menu here */
intf_thread_t *p_intf;
p_intf = vlc_object_find( p_vout, VLC_OBJECT_INTF, FIND_ANYWHERE );
if( p_intf )
{
p_intf->b_menu_change = 1;
vlc_object_release( p_intf );
}
}
break; break;
case AA_RESIZE: case AA_RESIZE:
p_vout->i_changes |= VOUT_SIZE_CHANGE; p_vout->i_changes |= VOUT_SIZE_CHANGE;
......
...@@ -311,16 +311,7 @@ static int Manage( vout_thread_t *p_vout ) ...@@ -311,16 +311,7 @@ static int Manage( vout_thread_t *p_vout )
break; break;
case GII_PBUTTON_RIGHT: case GII_PBUTTON_RIGHT:
{ /* trigger contextual menu here */
intf_thread_t *p_intf;
p_intf = vlc_object_find( p_vout, VLC_OBJECT_INTF,
FIND_ANYWHERE );
if( p_intf )
{
p_intf->b_menu_change = 1;
vlc_object_release( p_intf );
}
}
break; break;
} }
break; break;
......
...@@ -459,18 +459,9 @@ static int Manage( vout_thread_t *p_vout ) ...@@ -459,18 +459,9 @@ static int Manage( vout_thread_t *p_vout )
case SDL_BUTTON_RIGHT: case SDL_BUTTON_RIGHT:
{ {
intf_thread_t *p_intf;
var_Get( p_vout, "mouse-button-down", &val ); var_Get( p_vout, "mouse-button-down", &val );
val.i_int &= ~4; val.i_int &= ~4;
var_Set( p_vout, "mouse-button-down", val ); var_Set( p_vout, "mouse-button-down", val );
p_intf = vlc_object_find( p_vout, VLC_OBJECT_INTF,
FIND_ANYWHERE );
if( p_intf )
{
p_intf->b_menu_change = 1;
vlc_object_release( p_intf );
}
val.b_bool = true; val.b_bool = true;
var_Set( p_vout->p_libvlc, "intf-popupmenu", val ); var_Set( p_vout->p_libvlc, "intf-popupmenu", val );
......
...@@ -1327,13 +1327,6 @@ static int ManageVideo( vout_thread_t *p_vout ) ...@@ -1327,13 +1327,6 @@ static int ManageVideo( vout_thread_t *p_vout )
var_Get( p_vout, "mouse-button-down", &val ); var_Get( p_vout, "mouse-button-down", &val );
val.i_int &= ~4; val.i_int &= ~4;
var_Set( p_vout, "mouse-button-down", val ); var_Set( p_vout, "mouse-button-down", val );
p_intf = vlc_object_find( p_vout, VLC_OBJECT_INTF,
FIND_ANYWHERE );
if( p_intf )
{
p_intf->b_menu_change = 1;
vlc_object_release( p_intf );
}
vlc_value_t val; val.b_bool = true; vlc_value_t val; val.b_bool = true;
var_Set( p_vout->p_libvlc, "intf-popupmenu", val ); var_Set( p_vout->p_libvlc, "intf-popupmenu", val );
......
...@@ -108,7 +108,6 @@ intf_thread_t* __intf_Create( vlc_object_t *p_this, const char *psz_module ) ...@@ -108,7 +108,6 @@ intf_thread_t* __intf_Create( vlc_object_t *p_this, const char *psz_module )
/* Initialize structure */ /* Initialize structure */
p_intf->b_menu = false; p_intf->b_menu = false;
p_intf->b_menu_change = false;
/* Initialize mutexes */ /* Initialize mutexes */
vlc_mutex_init( &p_intf->change_lock ); vlc_mutex_init( &p_intf->change_lock );
......
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