blob: 0996f592f14a16887477b7e7de6d7e24b994f74d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
/*
* 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;
}
|