diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-07-26 19:41:04 +0000 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-11-02 04:14:46 +0200 |
commit | 269d3df12cb1db7a8a75585db7fb5bd814f8a554 (patch) | |
tree | d20cd12dd7982e06dc15bcb94996b68c4406101b /mplayer.c | |
parent | 1ee113088f7093e6e7d2b27a29270de1ef35f799 (diff) | |
download | mpv-269d3df12cb1db7a8a75585db7fb5bd814f8a554.tar.bz2 mpv-269d3df12cb1db7a8a75585db7fb5bd814f8a554.tar.xz |
dvdnav: Support for image highlights for dvdnav menus.
Does not work 100% reliably and needs -sid 0.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31828 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r-- | mplayer.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -4332,8 +4332,14 @@ if(auto_quality>0){ if (mpctx->stream->type == STREAMTYPE_DVDNAV) { nav_highlight_t hl; mp_dvdnav_get_highlight (mpctx->stream, &hl); + if (!vo_spudec || !spudec_apply_palette_crop(vo_spudec, hl.palette, hl.sx, hl.sy, hl.ex, hl.ey)) { osd_set_nav_box (hl.sx, hl.sy, hl.ex, hl.ey); vo_osd_changed (OSDTYPE_DVDNAV); + } else { + osd_set_nav_box(0, 0, 0, 0); + vo_osd_changed(OSDTYPE_DVDNAV); + vo_osd_changed(OSDTYPE_SPU); + } if (mp_dvdnav_stream_has_changed(mpctx->stream)) { double ar = -1.0; |