]> git.sesse.net Git - vlc/commitdiff
zvbi: fix subpage "down"-key to not alternate between "signaled" and "subpage 1"
authorDerk-Jan Hartman <hartman@videolan.org>
Thu, 11 Sep 2008 23:59:00 +0000 (01:59 +0200)
committerDerk-Jan Hartman <hartman@videolan.org>
Fri, 12 Sep 2008 00:52:36 +0000 (02:52 +0200)
modules/codec/zvbi.c

index 872dd42f4e7b1d9ed31388c7f6d17f417a544e35..759d1408de3a88f876de025abf5e4cb858b30e52 100644 (file)
@@ -679,7 +679,7 @@ static int EventKey( vlc_object_t *p_this, char const *psz_cmd,
     if( newval.i_int == '-' || newval.i_int == '+' )
     {
         vlc_mutex_lock( &p_sys->lock );
-        if( p_sys->i_wanted_subpage == VBI_ANY_SUBNO )
+        if( p_sys->i_wanted_subpage == VBI_ANY_SUBNO && newval.i_int == '+' )
             p_sys->i_wanted_subpage = vbi_dec2bcd(1);
         else if ( newval.i_int == '+' )
             p_sys->i_wanted_subpage = vbi_add_bcd( p_sys->i_wanted_subpage, 1);