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

Remove write-only variable

parent b0b00671
...@@ -1307,8 +1307,6 @@ static void* EventThread( vlc_object_t *p_this ) ...@@ -1307,8 +1307,6 @@ static void* EventThread( vlc_object_t *p_this )
/* main loop */ /* main loop */
while( vlc_object_alive( p_ev ) ) while( vlc_object_alive( p_ev ) )
{ {
bool b_activated = false;
/* KEY part */ /* KEY part */
if( p_ev->i_key_action != 0 ) if( p_ev->i_key_action != 0 )
{ {
...@@ -1330,7 +1328,6 @@ static void* EventThread( vlc_object_t *p_this ) ...@@ -1330,7 +1328,6 @@ static void* EventThread( vlc_object_t *p_this )
dvdnav_lower_button_select( p_sys->dvdnav, pci ); dvdnav_lower_button_select( p_sys->dvdnav, pci );
break; break;
case ACTIONID_NAV_ACTIVATE: case ACTIONID_NAV_ACTIVATE:
b_activated = true;
ButtonUpdate( p_ev->p_demux, true ); ButtonUpdate( p_ev->p_demux, true );
dvdnav_button_activate( p_sys->dvdnav, pci ); dvdnav_button_activate( p_sys->dvdnav, pci );
break; break;
...@@ -1358,7 +1355,6 @@ static void* EventThread( vlc_object_t *p_this ) ...@@ -1358,7 +1355,6 @@ static void* EventThread( vlc_object_t *p_this )
} }
if( p_ev->b_clicked ) if( p_ev->b_clicked )
{ {
b_activated = true;
ButtonUpdate( p_ev->p_demux, true ); ButtonUpdate( p_ev->p_demux, true );
dvdnav_mouse_activate( p_sys->dvdnav, pci, valx.i_int, dvdnav_mouse_activate( p_sys->dvdnav, pci, valx.i_int,
valy.i_int ); valy.i_int );
...@@ -1390,8 +1386,7 @@ static void* EventThread( vlc_object_t *p_this ) ...@@ -1390,8 +1386,7 @@ static void* EventThread( vlc_object_t *p_this )
vlc_mutex_lock( &p_ev->lock ); vlc_mutex_lock( &p_ev->lock );
if( p_ev->b_still ) if( p_ev->b_still )
{ {
if( /* b_activated || // This breaks menus */ if( p_ev->i_still_end > 0 && p_ev->i_still_end < mdate() )
( p_ev->i_still_end > 0 && p_ev->i_still_end < mdate() ))
{ {
p_ev->b_still = false; p_ev->b_still = false;
dvdnav_still_skip( p_sys->dvdnav ); dvdnav_still_skip( p_sys->dvdnav );
......
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