mirror of
https://github.com/mpv-player/mpv
synced 2025-03-25 04:38:01 +00:00
Discard earlier failure in building filter chain when trying a new codec.
Avoids an incorrect "FATAL: Could not initialize video filters (-vf) or video output (-vo)." message in some rare cases. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22423 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
9dae0ef2b9
commit
fa4f66ca08
@ -257,6 +257,9 @@ int init_video(sh_video_t *sh_video,char* codecname,char* vfm,int status){
|
||||
}
|
||||
// init()
|
||||
mp_msg(MSGT_DECVIDEO,MSGL_INFO,MSGTR_OpeningVideoDecoder,mpvdec->info->short_name,mpvdec->info->name);
|
||||
// clear vf init error, it is no longer relevant
|
||||
if (sh_video->vf_inited < 0)
|
||||
sh_video->vf_inited = 0;
|
||||
if(!mpvdec->init(sh_video)){
|
||||
mp_msg(MSGT_DECVIDEO,MSGL_INFO,MSGTR_VDecoderInitFailed);
|
||||
sh_video->disp_w=orig_w;
|
||||
|
Loading…
Reference in New Issue
Block a user