diff options
Diffstat (limited to 'libmpcodecs/dec_video.c')
-rw-r--r-- | libmpcodecs/dec_video.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/libmpcodecs/dec_video.c b/libmpcodecs/dec_video.c index 403f29d4cd..ab63ec4006 100644 --- a/libmpcodecs/dec_video.c +++ b/libmpcodecs/dec_video.c @@ -152,7 +152,7 @@ int get_current_video_decoder_lag(sh_video_t *sh_video) } void uninit_video(sh_video_t *sh_video){ - if(!sh_video->inited) return; + if(!sh_video->initialized) return; mp_msg(MSGT_DECVIDEO,MSGL_V,MSGTR_UninitVideoStr,sh_video->codec->drv); mpvdec->uninit(sh_video); #ifdef DYNAMIC_PLUGINS @@ -160,7 +160,7 @@ void uninit_video(sh_video_t *sh_video){ dlclose(sh_video->dec_handle); #endif vf_uninit_filter_chain(sh_video->vfilter); - sh_video->inited=0; + sh_video->initialized=0; } void vfm_help(void){ @@ -180,7 +180,7 @@ static int init_video(sh_video_t *sh_video,char* codecname,char* vfm,int status, int force = 0; unsigned int orig_fourcc=sh_video->bih?sh_video->bih->biCompression:0; sh_video->codec=NULL; - sh_video->vf_inited=0; + sh_video->vf_initialized=0; if (codecname && codecname[0] == '+') { codecname = &codecname[1]; force = 1; @@ -259,8 +259,8 @@ static 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 (sh_video->vf_initialized < 0) + sh_video->vf_initialized = 0; if(!mpvdec->init(sh_video)){ mp_msg(MSGT_DECVIDEO,MSGL_INFO,MSGTR_VDecoderInitFailed); sh_video->disp_w=orig_w; @@ -272,7 +272,7 @@ static int init_video(sh_video_t *sh_video,char* codecname,char* vfm,int status, continue; // try next... } // Yeah! We got it! - sh_video->inited=1; + sh_video->initialized=1; return 1; } return 0; @@ -284,9 +284,9 @@ stringset_t selected; // hack: if(!video_codec_list) video_codec_list=vc_l_default; // Go through the codec.conf and find the best codec... -sh_video->inited=0; +sh_video->initialized=0; stringset_init(&selected); -while(!sh_video->inited && *video_codec_list){ +while(!sh_video->initialized && *video_codec_list){ char* video_codec=*(video_codec_list++); if(video_codec[0]){ if(video_codec[0]=='-'){ @@ -303,21 +303,21 @@ while(!sh_video->inited && *video_codec_list){ if(video_fm_list){ char** fmlist=video_fm_list; // try first the preferred codec families: - while(!sh_video->inited && *fmlist){ + while(!sh_video->initialized && *fmlist){ char* video_fm=*(fmlist++); mp_msg(MSGT_DECVIDEO,MSGL_INFO,MSGTR_TryForceVideoFmtStr,video_fm); for(status=CODECS_STATUS__MAX;status>=CODECS_STATUS__MIN;--status) if(init_video(sh_video,NULL,video_fm,status, &selected)) break; } } - if(!sh_video->inited) + if(!sh_video->initialized) for(status=CODECS_STATUS__MAX;status>=CODECS_STATUS__MIN;--status) if(init_video(sh_video,NULL,NULL,status, &selected)) break; } } stringset_free(&selected); -if(!sh_video->inited){ +if(!sh_video->initialized){ mp_msg(MSGT_DECVIDEO,MSGL_ERR,MSGTR_CantFindVideoCodec,sh_video->format); mp_msg(MSGT_DECAUDIO,MSGL_HINT, MSGTR_RTFMCodecs); return 0; // failed |