[Mplayer-cvslog] CVS: main/libmpcodecs vd_realvid.c,1.16,1.17
Arpi of Ize
arpi at mplayerhq.hu
Sun Oct 13 23:26:03 CEST 2002
Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var/tmp.root/cvs-serv6672
Modified Files:
vd_realvid.c
Log Message:
make local stuff 'static', complete uninit
Index: vd_realvid.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vd_realvid.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- vd_realvid.c 29 Sep 2002 19:19:31 -0000 1.16
+++ vd_realvid.c 13 Oct 2002 21:26:00 -0000 1.17
@@ -22,13 +22,13 @@
LIBVD_EXTERN(realvid)
-unsigned long (*rvyuv_custom_message)(unsigned long*,void*);
-unsigned long (*rvyuv_free)(void*);
-unsigned long (*rvyuv_hive_message)(unsigned long,unsigned long);
-unsigned long (*rvyuv_init)(void*, void*); // initdata,context
-unsigned long (*rvyuv_transform)(char*, char*,unsigned long*,unsigned long*,void*);
+static unsigned long (*rvyuv_custom_message)(unsigned long*,void*);
+static unsigned long (*rvyuv_free)(void*);
+static unsigned long (*rvyuv_hive_message)(unsigned long,unsigned long);
+static unsigned long (*rvyuv_init)(void*, void*); // initdata,context
+static unsigned long (*rvyuv_transform)(char*, char*,unsigned long*,unsigned long*,void*);
-void *rv_handle=NULL;
+static void *rv_handle=NULL;
void *__builtin_vec_new(unsigned long size) {
return malloc(size);
@@ -63,7 +63,7 @@
}
/* exits program when failure */
-int load_syms_linux(char *path) {
+static int load_syms_linux(char *path) {
void *handle;
mp_msg(MSGT_DECVIDEO,MSGL_INFO, "opening shared obj '%s'\n", path);
@@ -96,7 +96,7 @@
void* LoadLibraryA(char* name);
void* GetProcAddress(void* handle,char* func);
-int load_syms_windows(char *path) {
+static int load_syms_windows(char *path) {
void *handle;
Setup_LDT_Keeper();
rv_handle = handle = LoadLibraryA(path);
@@ -177,6 +177,7 @@
// uninit driver
static void uninit(sh_video_t *sh){
+ if(rvyuv_free) rvyuv_free(sh->context);
if(rv_handle) dlclose(rv_handle);
rv_handle=NULL;
}
More information about the MPlayer-cvslog
mailing list