diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-10-13 21:26:00 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-10-13 21:26:00 +0000 |
commit | 89807b4a7ac97d581fc5429a651b149ce66c3639 (patch) | |
tree | e16dd1d395cf1c2b08c568673086078df7de2a9a /libmpcodecs | |
parent | 763f88df045ee4721afe975ec0197709d48c8a7a (diff) | |
download | mpv-89807b4a7ac97d581fc5429a651b149ce66c3639.tar.bz2 mpv-89807b4a7ac97d581fc5429a651b149ce66c3639.tar.xz |
make local stuff 'static', complete uninit
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7729 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r-- | libmpcodecs/vd_realvid.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/libmpcodecs/vd_realvid.c b/libmpcodecs/vd_realvid.c index 38be409265..31736139b5 100644 --- a/libmpcodecs/vd_realvid.c +++ b/libmpcodecs/vd_realvid.c @@ -22,13 +22,13 @@ static vd_info_t info = { 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 @@ static int control(sh_video_t *sh,int cmd,void* arg,...){ } /* 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 @@ int load_syms_linux(char *path) { 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 @@ static int init(sh_video_t *sh){ // 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; } |