[Mplayer-cvslog] CVS: main/vidix vidixlib.c,1.6,1.7

Alex Beregszaszi alex at mplayer.dev.hu
Sun Feb 3 14:05:33 CET 2002


Update of /cvsroot/mplayer/main/vidix
In directory mplayer:/var/tmp.root/cvs-serv20259

Modified Files:
	vidixlib.c 
Log Message:
using dlerror() instead strerror(), displays unresolved symbol messages

Index: vidixlib.c
===================================================================
RCS file: /cvsroot/mplayer/main/vidix/vidixlib.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- vidixlib.c	16 Jan 2002 08:33:09 -0000	1.6
+++ vidixlib.c	3 Feb 2002 13:05:30 -0000	1.7
@@ -84,7 +84,7 @@
 	t_vdl(stream)->config_playback && t_vdl(stream)->playback_on &&
 	t_vdl(stream)->playback_off))
   {
-    printf("vidixlib: Incomplete driver: some features are missed in it.\n");
+    printf("vidixlib: Incomplete driver: some of essential features are missed in it.\n");
     return 0;
   }
   return 1;
@@ -101,7 +101,7 @@
   if(verbose) printf("vidixlib: PROBING: %s\n",drv_name);
   if(!(t_vdl(stream)->handle = dlopen(drv_name,RTLD_LAZY|RTLD_GLOBAL)))
   {
-    if(verbose) printf("vidixlib: %s not driver: %s\n",drv_name,strerror(errno));
+    if(verbose) printf("vidixlib: %s not driver: %s\n",drv_name,dlerror());
     return 0;
   }
   _ver = dlsym(t_vdl(stream)->handle,"vixGetVersion");
@@ -172,6 +172,8 @@
     strcat(drv_name,name);
     if(!(t_vdl(stream)->handle = dlopen(drv_name,RTLD_NOW|RTLD_GLOBAL)))
     {
+      if (verbose)
+	printf("vidixlib: dlopen error: %s\n", dlerror());
       err:
       free(stream);
       return NULL;




More information about the MPlayer-cvslog mailing list