[vlc-devel] commit: Remove write-only variable ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sat Apr 4 17:42:55 CEST 2009
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Apr 4 16:25:06 2009 +0300| [a3cd642b3f4385d299876025e2cb553701e10df5] | committer: Rémi Denis-Courmont
Remove write-only variable
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a3cd642b3f4385d299876025e2cb553701e10df5
---
modules/access/dvdnav.c | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
diff --git a/modules/access/dvdnav.c b/modules/access/dvdnav.c
index cc3450a..ee3c16e 100644
--- a/modules/access/dvdnav.c
+++ b/modules/access/dvdnav.c
@@ -1307,8 +1307,6 @@ static void* EventThread( vlc_object_t *p_this )
/* main loop */
while( vlc_object_alive( p_ev ) )
{
- bool b_activated = false;
-
/* KEY part */
if( p_ev->i_key_action != 0 )
{
@@ -1330,7 +1328,6 @@ static void* EventThread( vlc_object_t *p_this )
dvdnav_lower_button_select( p_sys->dvdnav, pci );
break;
case ACTIONID_NAV_ACTIVATE:
- b_activated = true;
ButtonUpdate( p_ev->p_demux, true );
dvdnav_button_activate( p_sys->dvdnav, pci );
break;
@@ -1358,7 +1355,6 @@ static void* EventThread( vlc_object_t *p_this )
}
if( p_ev->b_clicked )
{
- b_activated = true;
ButtonUpdate( p_ev->p_demux, true );
dvdnav_mouse_activate( p_sys->dvdnav, pci, valx.i_int,
valy.i_int );
@@ -1390,8 +1386,7 @@ static void* EventThread( vlc_object_t *p_this )
vlc_mutex_lock( &p_ev->lock );
if( p_ev->b_still )
{
- if( /* b_activated || // This breaks menus */
- ( p_ev->i_still_end > 0 && p_ev->i_still_end < mdate() ))
+ if( p_ev->i_still_end > 0 && p_ev->i_still_end < mdate() )
{
p_ev->b_still = false;
dvdnav_still_skip( p_sys->dvdnav );
More information about the vlc-devel
mailing list