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

reimar subversion at mplayerhq.hu
Sun Apr 25 18:09:56 CEST 2010


Author: reimar
Date: Sun Apr 25 18:09:56 2010
New Revision: 31090

Log:
Fix crash if a DVD is played with dvdnav:// and without  video
(e.g. because vo initialization failed).

Modified:
   trunk/mplayer.c

Modified: trunk/mplayer.c
==============================================================================
--- trunk/mplayer.c	Sun Apr 25 17:49:46 2010	(r31089)
+++ trunk/mplayer.c	Sun Apr 25 18:09:56 2010	(r31090)
@@ -3894,7 +3894,8 @@ if(auto_quality>0){
 
    if (mp_dvdnav_stream_has_changed(mpctx->stream)) {
      double ar = -1.0;
-     if (stream_control (mpctx->demuxer->stream,
+     if (mpctx->sh_video &&
+         stream_control (mpctx->demuxer->stream,
                          STREAM_CTRL_GET_ASPECT_RATIO, &ar)
          != STREAM_UNSUPPORTED)
        mpctx->sh_video->stream_aspect = ar;


More information about the MPlayer-cvslog mailing list