diff options
Diffstat (limited to 'path.c')
-rw-r--r-- | path.c | 16 |
1 files changed, 0 insertions, 16 deletions
@@ -181,22 +181,6 @@ void set_path_env(void) char *codec_path = BINARY_CODECS_PATH; -static int needs_free = 0; - -void set_codec_path(const char *path) -{ - if (needs_free) - free(codec_path); - if (path == 0) { - codec_path = BINARY_CODECS_PATH; - needs_free = 0; - return; - } - codec_path = malloc(strlen(path) + 1); - strcpy(codec_path, path); - needs_free = 1; -} - char *mp_basename(const char *path) { char *s; |