mirror of https://github.com/mpv-player/mpv
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:
parent
6d4dcace07
commit
2ee913d372
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue