[MPlayer-cvslog] r25853 - trunk/stream/stream_dvdnav.c

ben subversion at mplayerhq.hu
Sat Jan 26 13:54:14 CET 2008


Author: ben
Date: Sat Jan 26 13:54:14 2008
New Revision: 25853

Log:
automatically set spu button highlight when nav cell has changed



Modified:
   trunk/stream/stream_dvdnav.c

Modified: trunk/stream/stream_dvdnav.c
==============================================================================
--- trunk/stream/stream_dvdnav.c	(original)
+++ trunk/stream/stream_dvdnav.c	Sat Jan 26 13:54:14 2008
@@ -303,6 +303,8 @@ static int fill_buffer(stream_t *s, char
         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 @@ static int fill_buffer(stream_t *s, char
             if(dvdnav_current_title_info(priv->dvdnav, &tit, &part) == DVDNAV_STATUS_OK && part > dvd_last_chapter)
               return 0;
             }
+          dvdnav_get_highlight (priv, 1);
         }
         break;
       }



More information about the MPlayer-cvslog mailing list