Mercurial > mplayer.hg
diff libmpcodecs/dec_video.c @ 22405:1b1761cbba3b
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.
author | reimar |
---|---|
date | Sat, 03 Mar 2007 16:59:39 +0000 |
parents | 8bf15e2ca61e |
children | af2ea92641a8 |
line wrap: on
line diff
--- a/libmpcodecs/dec_video.c Sat Mar 03 13:39:46 2007 +0000 +++ b/libmpcodecs/dec_video.c Sat Mar 03 16:59:39 2007 +0000 @@ -257,6 +257,9 @@ } // 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;