aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar albeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-03-16 17:10:15 +0000
committerGravatar albeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-03-16 17:10:15 +0000
commit62aac61a0322ed7d04b0fa443c375efdcb46192d (patch)
tree22e43d7cde2f64ed028bdea6730be78a1c616edc
parentecc9aff200260f7e38266cee5f2cf4d12580582c (diff)
Fixed the bug that make mplayer crash with no sound and an invalid
video codec git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5139 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--mplayer.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mplayer.c b/mplayer.c
index bb55ac22bc..57ff0f0b01 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -1247,7 +1247,9 @@ while(1){
if(bestprio==-1 || !video_codec) {
mp_msg(MSGT_CPLAYER,MSGL_ERR,MSGTR_CantFindVideoCodec,sh_video->format);
mp_msg(MSGT_CPLAYER,MSGL_HINT, MSGTR_TryUpgradeCodecsConfOrRTFM,get_path("codecs.conf"));
- sh_video = d_video->sh = NULL;
+ if(!sh_audio)
+ goto goto_next_file;
+ sh_video = d_video->sh = NULL;
goto main; // exit_player(MSGTR_Exit_error);
}
} else {