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
This commit is contained in:
albeu 2002-03-16 17:10:15 +00:00
parent ecc9aff200
commit 62aac61a03
1 changed files with 3 additions and 1 deletions

View File

@ -1247,6 +1247,8 @@ 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"));
if(!sh_audio)
goto goto_next_file;
sh_video = d_video->sh = NULL;
goto main; // exit_player(MSGTR_Exit_error);
}