changeset 25831:9463ef1a0e63

Check for stream change in dvdnav. Set new aspect ratio if needed (for example in cell change)
author ben
date Sat, 26 Jan 2008 16:18:58 +0000
parents 32acf35f74e1
children 8601206c2ffc
files mplayer.c
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Sat Jan 26 16:17:44 2008 +0000
+++ b/mplayer.c	Sat Jan 26 16:18:58 2008 +0000
@@ -3769,6 +3769,14 @@
    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