summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorben <ben@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-01-26 16:18:58 +0000
committerben <ben@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-01-26 16:18:58 +0000
commitca13485af8f69668db19c59965ade6b0801107ee (patch)
tree0f11e6d32a5a2a200be9bce793c462316712437c /mplayer.c
parent6230aab9bff3edf1067bef8b3675eeaee050af64 (diff)
downloadmpv-ca13485af8f69668db19c59965ade6b0801107ee.tar.bz2
mpv-ca13485af8f69668db19c59965ade6b0801107ee.tar.xz
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
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/mplayer.c b/mplayer.c
index 08ba40ac27..54f77a5ac4 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -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