Check for stream change in dvdnav.

Set new aspect ratio if needed (for example in cell change)



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25859 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
ben 2008-01-26 16:18:58 +00:00
parent 6230aab9bf
commit ca13485af8
1 changed files with 8 additions and 0 deletions

View File

@ -3769,6 +3769,14 @@ if(auto_quality>0){
mp_dvdnav_get_highlight (mpctx->stream, &hl);
osd_set_nav_box (hl.sx, hl.sy, hl.ex, hl.ey);
vo_osd_changed (OSDTYPE_DVDNAV);
if (mp_dvdnav_stream_has_changed(mpctx->stream)) {
double ar = -1.0;
if (stream_control (mpctx->demuxer->stream,
STREAM_CTRL_GET_ASPECT_RATIO, &ar)
!= STREAM_UNSUPPORTED)
mpctx->sh_video->stream_aspect = ar;
}
}
#endif