[MPlayer-cvslog] r22423 - trunk/libmpcodecs/dec_video.c
reimar
subversion at mplayerhq.hu
Sat Mar 3 17:59:39 CET 2007
Author: reimar
Date: Sat Mar 3 17:59:39 2007
New Revision: 22423
Modified:
trunk/libmpcodecs/dec_video.c
Log:
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.
Modified: trunk/libmpcodecs/dec_video.c
==============================================================================
--- trunk/libmpcodecs/dec_video.c (original)
+++ trunk/libmpcodecs/dec_video.c Sat Mar 3 17:59:39 2007
@@ -257,6 +257,9 @@ int init_video(sh_video_t *sh_video,char
}
// 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;
More information about the MPlayer-cvslog
mailing list