comparison mplayer.c @ 5138:fce3b54250b1

Fixed the bug that make mplayer crash with no sound and an invalid video codec
author albeu
date Sat, 16 Mar 2002 17:10:15 +0000
parents aeef7f3c2096
children 610d399f50c3
comparison
equal deleted inserted replaced
5137:74e0ebe59cab 5138:fce3b54250b1
1245 continue; 1245 continue;
1246 } 1246 }
1247 if(bestprio==-1 || !video_codec) { 1247 if(bestprio==-1 || !video_codec) {
1248 mp_msg(MSGT_CPLAYER,MSGL_ERR,MSGTR_CantFindVideoCodec,sh_video->format); 1248 mp_msg(MSGT_CPLAYER,MSGL_ERR,MSGTR_CantFindVideoCodec,sh_video->format);
1249 mp_msg(MSGT_CPLAYER,MSGL_HINT, MSGTR_TryUpgradeCodecsConfOrRTFM,get_path("codecs.conf")); 1249 mp_msg(MSGT_CPLAYER,MSGL_HINT, MSGTR_TryUpgradeCodecsConfOrRTFM,get_path("codecs.conf"));
1250 sh_video = d_video->sh = NULL; 1250 if(!sh_audio)
1251 goto goto_next_file;
1252 sh_video = d_video->sh = NULL;
1251 goto main; // exit_player(MSGTR_Exit_error); 1253 goto main; // exit_player(MSGTR_Exit_error);
1252 } 1254 }
1253 } else { 1255 } else {
1254 // is next line needed anymore? - atmos :: 1256 // is next line needed anymore? - atmos ::
1255 if(!allow_dshow && sh_video->codec->driver==VFM_DSHOW) continue; // skip DShow 1257 if(!allow_dshow && sh_video->codec->driver==VFM_DSHOW) continue; // skip DShow