[MPlayer-cvslog] r25859 - trunk/mplayer.c

ben subversion at mplayerhq.hu
Sat Jan 26 17:18:58 CET 2008


Author: ben
Date: Sat Jan 26 17:18:58 2008
New Revision: 25859

Log:
Check for stream change in dvdnav.
Set new aspect ratio if needed (for example in cell change)



Modified:
   trunk/mplayer.c

Modified: trunk/mplayer.c
==============================================================================
--- trunk/mplayer.c	(original)
+++ trunk/mplayer.c	Sat Jan 26 17:18:58 2008
@@ -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
  



More information about the MPlayer-cvslog mailing list