From 8976b21cf1ae936805de4f6b2e7402a7af1d8200 Mon Sep 17 00:00:00 2001 From: ben Date: Sat, 26 Jan 2008 12:54:14 +0000 Subject: automatically set spu button highlight when nav cell has changed git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25853 b3059339-0415-0410-9bf9-f77b7e298cf2 --- stream/stream_dvdnav.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'stream') diff --git a/stream/stream_dvdnav.c b/stream/stream_dvdnav.c index b1eead3b25..dc50f4f14b 100644 --- a/stream/stream_dvdnav.c +++ b/stream/stream_dvdnav.c @@ -303,6 +303,8 @@ static int fill_buffer(stream_t *s, char *but, int len) 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 *but, int len) if(dvdnav_current_title_info(priv->dvdnav, &tit, &part) == DVDNAV_STATUS_OK && part > dvd_last_chapter) return 0; } + dvdnav_get_highlight (priv, 1); } break; } -- cgit v1.2.3