summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-04-25 16:09:56 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-04-25 16:09:56 +0000
commit38505822c7914c60fbbd003f00c4176500547444 (patch)
tree6d4002b1e512721dce6ca660e30be4c62fec8c66 /mplayer.c
parent2f629d79698d1c297e63b3013e002159d37e1ad3 (diff)
downloadmpv-38505822c7914c60fbbd003f00c4176500547444.tar.bz2
mpv-38505822c7914c60fbbd003f00c4176500547444.tar.xz
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
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mplayer.c b/mplayer.c
index 664fdb7ef0..4df25a5010 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -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;