Mercurial > mplayer.hg
changeset 11513:552ddee604c9
workaround! exit if there's no video stream (hopefully it's a proper fix)
author | alex |
---|---|
date | Sun, 23 Nov 2003 19:30:05 +0000 |
parents | 4ff38d168c2f |
children | e9197e66d2ab |
files | mencoder.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mencoder.c Sun Nov 23 17:09:59 2003 +0000 +++ b/mencoder.c Sun Nov 23 19:30:05 2003 +0000 @@ -510,6 +510,12 @@ 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);