changeset 25825:4c17a62383a4

automatically set spu button highlight when nav cell has changed
author ben
date Sat, 26 Jan 2008 12:54:14 +0000
parents eb338d06c638
children d8ed72fc61f8
files stream/stream_dvdnav.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/stream/stream_dvdnav.c	Sat Jan 26 11:51:34 2008 +0000
+++ b/stream/stream_dvdnav.c	Sat Jan 26 12:54:14 2008 +0000
@@ -303,6 +303,8 @@
         mp_msg(MSGT_CPLAYER,MSGL_ERR, "DVDNAV stream read error!\n");
         return 0;
       }
+      if (event != DVDNAV_BLOCK_OK)
+        dvdnav_get_highlight (priv, 1);
       switch (event) {
         case DVDNAV_STOP: {
           priv->state |= NAV_FLAG_EOF;
@@ -347,6 +349,7 @@
             if(dvdnav_current_title_info(priv->dvdnav, &tit, &part) == DVDNAV_STATUS_OK && part > dvd_last_chapter)
               return 0;
             }
+          dvdnav_get_highlight (priv, 1);
         }
         break;
       }