Mercurial > mplayer.hg
changeset 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 | 521cd55ab99b |
children | 9977fe541c4d |
files | libmpcodecs/dec_video.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
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;