Mercurial > mplayer.hg
comparison mencoder.c @ 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 | 719d696267a8 |
children | 18d3b3a1101b |
comparison
equal
deleted
inserted
replaced
11512:4ff38d168c2f | 11513:552ddee604c9 |
---|---|
507 d_audio=demuxer2 ? demuxer2->audio : demuxer->audio; | 507 d_audio=demuxer2 ? demuxer2->audio : demuxer->audio; |
508 d_video=demuxer->video; | 508 d_video=demuxer->video; |
509 d_dvdsub=demuxer->sub; | 509 d_dvdsub=demuxer->sub; |
510 sh_audio=d_audio->sh; | 510 sh_audio=d_audio->sh; |
511 sh_video=d_video->sh; | 511 sh_video=d_video->sh; |
512 | |
513 if(!sh_video) | |
514 { | |
515 mp_msg(MSGT_CPLAYER,MSGL_FATAL,"Video stream is mandatory!\n"); | |
516 mencoder_exit(1,NULL); | |
517 } | |
512 | 518 |
513 if(!video_read_properties(sh_video)){ | 519 if(!video_read_properties(sh_video)){ |
514 printf(MSGTR_CannotReadVideoProperties); | 520 printf(MSGTR_CannotReadVideoProperties); |
515 mencoder_exit(1,NULL); | 521 mencoder_exit(1,NULL); |
516 } | 522 } |