diff options
author | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-03-23 18:01:00 +0000 |
---|---|---|
committer | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-03-23 18:01:00 +0000 |
commit | 5e480c7b817748e000caa967711f28eae5e2a3f2 (patch) | |
tree | 83a6663e3ced7c09afde135341c6760fe761465b /libmpcodecs/ad_realaud.c | |
parent | cb26eaf0bbcf028e3cf23c912e061268dcbb8127 (diff) | |
download | mpv-5e480c7b817748e000caa967711f28eae5e2a3f2.tar.bz2 mpv-5e480c7b817748e000caa967711f28eae5e2a3f2.tar.xz |
Get rid of pointless def_path variable; use codec_path directly instead.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30949 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs/ad_realaud.c')
-rw-r--r-- | libmpcodecs/ad_realaud.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libmpcodecs/ad_realaud.c b/libmpcodecs/ad_realaud.c index 87ff3689b5..b3205065a0 100644 --- a/libmpcodecs/ad_realaud.c +++ b/libmpcodecs/ad_realaud.c @@ -252,9 +252,9 @@ static int preinit(sh_audio_t *sh){ unsigned int result; char *path; - path = malloc(strlen(def_path) + strlen(sh->codec->dll) + 2); + path = malloc(strlen(codecs_path) + strlen(sh->codec->dll) + 2); if (!path) return 0; - sprintf(path, "%s/%s", def_path, sh->codec->dll); + sprintf(path, "%s/%s", codecs_path, sh->codec->dll); /* first try to load linux dlls, if failed and we're supporting win32 dlls, then try to load the windows ones */ @@ -278,8 +278,8 @@ static int preinit(sh_audio_t *sh){ if(raSetDLLAccessPath){ #endif // used by 'SIPR' - path = realloc(path, strlen(def_path) + 13); - sprintf(path, "DT_Codecs=%s", def_path); + path = realloc(path, strlen(codecs_path) + 13); + sprintf(path, "DT_Codecs=%s", codecs_path); if(path[strlen(path)-1]!='/'){ path[strlen(path)+1]=0; path[strlen(path)]='/'; @@ -301,14 +301,14 @@ static int preinit(sh_audio_t *sh){ #ifdef CONFIG_WIN32DLL if (dll_type == 1){ if (wraOpenCodec2) { - sprintf(path, "%s\\", def_path); + sprintf(path, "%s\\", codecs_path); result = wraOpenCodec2(&sh->context, path); } else result=wraOpenCodec(&sh->context); } else #endif if (raOpenCodec2) { - sprintf(path, "%s/", def_path); + sprintf(path, "%s/", codecs_path); result = raOpenCodec2(&sh->context, path); } else result=raOpenCodec(&sh->context); |