mirror of
https://github.com/mpv-player/mpv
synced 2025-03-19 09:57:34 +00:00
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:
parent
6230aab9bf
commit
ca13485af8
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user