# HG changeset patch # User reimar # Date 1272211796 0 # Node ID ba91602b82c54664c029b92958fd46be040fb4d5 # Parent 745f9833930b811297f8bdf81f1053c2d92f9d74 Fix crash if a DVD is played with dvdnav:// and without video (e.g. because vo initialization failed). diff -r 745f9833930b -r ba91602b82c5 mplayer.c --- a/mplayer.c Sun Apr 25 15:49:46 2010 +0000 +++ b/mplayer.c Sun Apr 25 16:09:56 2010 +0000 @@ -3894,7 +3894,8 @@ 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;