workaround! exit if there's no video stream (hopefully it's a proper fix)

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11514 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
alex 2003-11-23 19:30:05 +00:00
parent 6d4dcace07
commit 2ee913d372
1 changed files with 6 additions and 0 deletions

View File

@ -510,6 +510,12 @@ d_dvdsub=demuxer->sub;
sh_audio=d_audio->sh;
sh_video=d_video->sh;
if(!sh_video)
{
mp_msg(MSGT_CPLAYER,MSGL_FATAL,"Video stream is mandatory!\n");
mencoder_exit(1,NULL);
}
if(!video_read_properties(sh_video)){
printf(MSGTR_CannotReadVideoProperties);
mencoder_exit(1,NULL);