summaryrefslogtreecommitdiffstats
path: root/loader/codecpath.c
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-03-20 23:27:07 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-03-20 23:27:07 +0000
commita06a3d476d268f9e17769916ebabf684af95e5e4 (patch)
tree770e41e412f3d8cb9f6b84483dfa79a5f57187d9 /loader/codecpath.c
parent64c4d367afac0e19c811fe48fb86a5786d5a2238 (diff)
downloadmpv-a06a3d476d268f9e17769916ebabf684af95e5e4.tar.bz2
mpv-a06a3d476d268f9e17769916ebabf684af95e5e4.tar.xz
Move SetCodecPath() from loader to get_path.c and make it unconditional.
This fixes compilation with the Win32 loader disabled but other binary codec loaders enabled. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30942 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'loader/codecpath.c')
-rw-r--r--loader/codecpath.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/loader/codecpath.c b/loader/codecpath.c
deleted file mode 100644
index 0996f592f1..0000000000
--- a/loader/codecpath.c
+++ /dev/null
@@ -1,26 +0,0 @@
-/*
- * Modified for use with MPlayer, detailed changelog at
- * http://svn.mplayerhq.hu/mplayer/trunk/
- */
-
-#include <stdlib.h>
-#include <string.h>
-#include "config.h"
-#include "codecpath.h"
-
-char* def_path = BINARY_CODECS_PATH;
-
-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;
-}