diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-05-01 17:39:46 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-05-01 17:39:46 +0000 |
commit | 7026f5f9ab1226cd5b4141627bcf15f86f4938ea (patch) | |
tree | e24783782bcd76c14e5e2c774d29f3bf610ff3e5 /libmpcodecs/dec_video.c | |
parent | e792742f6a0b023c34e2e606fa7ad3a05efcca6d (diff) | |
download | mpv-7026f5f9ab1226cd5b4141627bcf15f86f4938ea.tar.bz2 mpv-7026f5f9ab1226cd5b4141627bcf15f86f4938ea.tar.xz |
setting vf_inited flag, some printf->mp_msg, some MSGL_FATAL->MSGL_WARN
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5926 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs/dec_video.c')
-rw-r--r-- | libmpcodecs/dec_video.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libmpcodecs/dec_video.c b/libmpcodecs/dec_video.c index 6a4c01293e..0d9e3a1c30 100644 --- a/libmpcodecs/dec_video.c +++ b/libmpcodecs/dec_video.c @@ -136,6 +136,7 @@ void uninit_video(sh_video_t *sh_video){ int init_video(sh_video_t *sh_video,char* codecname,int vfm,int status){ sh_video->codec=NULL; + sh_video->vf_inited=0; while((sh_video->codec=find_codec(sh_video->format, sh_video->bih?((unsigned int*) &sh_video->bih->biCompression):NULL, sh_video->codec,0) )){ @@ -151,14 +152,14 @@ int init_video(sh_video_t *sh_video,char* codecname,int vfm,int status){ if(mpcodecs_vd_drivers[i]->info->id==sh_video->codec->driver) break; mpvdec=mpcodecs_vd_drivers[i]; if(!mpvdec){ // driver not available (==compiled in) - mp_msg(MSGT_DECVIDEO,MSGL_ERR,"Requested video codec family [%s] (vfm=%d) not available (enable it at compile time!)\n", + mp_msg(MSGT_DECVIDEO,MSGL_WARN,"Requested video codec family [%s] (vfm=%d) not available (enable it at compile time!)\n", sh_video->codec->name, sh_video->codec->driver); continue; } // it's available, let's try to init! - printf("Opening Video Decoder: [%s] %s\n",mpvdec->info->short_name,mpvdec->info->name); + mp_msg(MSGT_DECVIDEO,MSGL_INFO,"Opening Video Decoder: [%s] %s\n",mpvdec->info->short_name,mpvdec->info->name); if(!mpvdec->init(sh_video)){ - printf("VDecoder init failed :(\n"); + mp_msg(MSGT_DECVIDEO,MSGL_INFO,"VDecoder init failed :(\n"); continue; // try next... } // Yeah! We got it! |