diff libmpcodecs/dec_video.c @ 5925:3f17793b2cea

setting vf_inited flag, some printf->mp_msg, some MSGL_FATAL->MSGL_WARN
author arpi
date Wed, 01 May 2002 17:39:46 +0000
parents c03422eaaadf
children fc19842f703a
line wrap: on
line diff
--- a/libmpcodecs/dec_video.c	Wed May 01 17:30:23 2002 +0000
+++ b/libmpcodecs/dec_video.c	Wed May 01 17:39:46 2002 +0000
@@ -136,6 +136,7 @@
 
 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 @@
 	    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!