Fix crash if a DVD is played with dvdnav:// and without video

(e.g. because vo initialization failed).


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31090 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2010-04-25 16:09:56 +00:00
parent 2f629d7969
commit 38505822c7
1 changed files with 2 additions and 1 deletions

View File

@ -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;