[vlc-devel] commit: zvbi: fix subpage "down"-key to not alternate between "signaled" and "subpage 1" (Derk-Jan Hartman )

git version control git at videolan.org
Fri Sep 12 02:49:10 CEST 2008


vlc | branch: master | Derk-Jan Hartman <hartman at videolan.org> | Fri Sep 12 01:59:00 2008 +0200| [8c31d06acbd646aa2e5aec6cc3d041afeefc4f36] | committer: Derk-Jan Hartman 

zvbi: fix subpage "down"-key to not alternate between "signaled" and "subpage 1"

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8c31d06acbd646aa2e5aec6cc3d041afeefc4f36
---

 modules/codec/zvbi.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/codec/zvbi.c b/modules/codec/zvbi.c
index 872dd42..759d140 100644
--- a/modules/codec/zvbi.c
+++ b/modules/codec/zvbi.c
@@ -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);




More information about the vlc-devel mailing list