changeset 19840:ba3b77867047

in mp_dvdnav_handle_input() update current button only if the status of the previous operation succeeded; patch by Jonas Jermann
author nicodvb
date Fri, 15 Sep 2006 17:50:10 +0000
parents 5b78f1c14256
children e7f56cc4505e
files stream/stream_dvdnav.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/stream/stream_dvdnav.c	Fri Sep 15 17:46:36 2006 +0000
+++ b/stream/stream_dvdnav.c	Fri Sep 15 17:50:10 2006 +0000
@@ -473,7 +473,8 @@
       break;
   }
 
-  dvdnav_get_current_highlight(nav, button);
+  if(status == DVDNAV_STATUS_OK)
+      dvdnav_get_current_highlight(nav, button);
 
   return reset;
 }