diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-03-18 20:44:01 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-03-18 20:44:01 +0000 |
commit | a743c0a73824f1f3bce5b59ef6d57e871d3f5022 (patch) | |
tree | 84fc641cdea0bcbe7dc54d05c32dfd5ae617cfae /loader/drv.c | |
parent | 70017fa3889084ce2c5317cf352f7581ff244d76 (diff) | |
download | mpv-a743c0a73824f1f3bce5b59ef6d57e871d3f5022.tar.bz2 mpv-a743c0a73824f1f3bce5b59ef6d57e871d3f5022.tar.xz |
Split codec path related code into a separate file to fix Windows build.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30930 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'loader/drv.c')
-rw-r--r-- | loader/drv.c | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/loader/drv.c b/loader/drv.c index 13945538d2..bfc57a4d1c 100644 --- a/loader/drv.c +++ b/loader/drv.c @@ -25,12 +25,7 @@ #ifndef __MINGW32__ #include "ext.h" #endif - -#ifndef WIN32_LOADER -char* def_path = BINARY_CODECS_PATH; -#else -extern char* def_path; -#endif +#include "codecpath.h" #if 1 @@ -65,21 +60,6 @@ extern char* def_path; "pop %%ebx\n\t"::) #endif -static int needs_free=0; -void SetCodecPath(const char* path) -{ - if(needs_free)free(def_path); - if(path==0) - { - def_path = BINARY_CODECS_PATH; - needs_free=0; - return; - } - def_path = malloc(strlen(path)+1); - strcpy(def_path, path); - needs_free=1; -} - static DWORD dwDrvID = 0; LRESULT WINAPI SendDriverMessage(HDRVR hDriver, UINT message, |