diff options
author | ben <ben@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-01-26 16:18:58 +0000 |
---|---|---|
committer | ben <ben@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-01-26 16:18:58 +0000 |
commit | ca13485af8f69668db19c59965ade6b0801107ee (patch) | |
tree | 0f11e6d32a5a2a200be9bce793c462316712437c /mplayer.c | |
parent | 6230aab9bff3edf1067bef8b3675eeaee050af64 (diff) | |
download | mpv-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.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |