changeset 30908:fbb65a2153c6

Fix build due to codecs_path vs. codec_path typo. patch by Erik Auerswald, auerswal unix-ag.uni-kl de
author diego
date Tue, 23 Mar 2010 19:40:37 +0000
parents b32527b30d17
children 0d0f53c47bd8
files libmpcodecs/ad_realaud.c libmpcodecs/vd_realvid.c
diffstat 2 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/ad_realaud.c	Tue Mar 23 18:01:00 2010 +0000
+++ b/libmpcodecs/ad_realaud.c	Tue Mar 23 19:40:37 2010 +0000
@@ -252,9 +252,9 @@
   unsigned int result;
   char *path;
 
-  path = malloc(strlen(codecs_path) + strlen(sh->codec->dll) + 2);
+  path = malloc(strlen(codec_path) + strlen(sh->codec->dll) + 2);
   if (!path) return 0;
-  sprintf(path, "%s/%s", codecs_path, sh->codec->dll);
+  sprintf(path, "%s/%s", codec_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 @@
   if(raSetDLLAccessPath){
 #endif
       // used by 'SIPR'
-      path = realloc(path, strlen(codecs_path) + 13);
-      sprintf(path, "DT_Codecs=%s", codecs_path);
+      path = realloc(path, strlen(codec_path) + 13);
+      sprintf(path, "DT_Codecs=%s", codec_path);
       if(path[strlen(path)-1]!='/'){
         path[strlen(path)+1]=0;
         path[strlen(path)]='/';
@@ -301,14 +301,14 @@
 #ifdef CONFIG_WIN32DLL
     if (dll_type == 1){
       if (wraOpenCodec2) {
-        sprintf(path, "%s\\", codecs_path);
+        sprintf(path, "%s\\", codec_path);
         result = wraOpenCodec2(&sh->context, path);
       } else
 	result=wraOpenCodec(&sh->context);
     } else
 #endif
     if (raOpenCodec2) {
-      sprintf(path, "%s/", codecs_path);
+      sprintf(path, "%s/", codec_path);
       result = raOpenCodec2(&sh->context, path);
     } else
       result=raOpenCodec(&sh->context);
--- a/libmpcodecs/vd_realvid.c	Tue Mar 23 18:01:00 2010 +0000
+++ b/libmpcodecs/vd_realvid.c	Tue Mar 23 19:40:37 2010 +0000
@@ -274,9 +274,9 @@
 
 	mp_msg(MSGT_DECVIDEO,MSGL_V,"realvideo codec id: 0x%08X  sub-id: 0x%08X\n",be2me_32(((unsigned int*)extrahdr)[1]),be2me_32(((unsigned int*)extrahdr)[0]));
 
-	path = malloc(strlen(codecs_path) + strlen(sh->codec->dll) + 2);
+	path = malloc(strlen(codec_path) + strlen(sh->codec->dll) + 2);
 	if (!path) return 0;
-	sprintf(path, "%s/%s", codecs_path, sh->codec->dll);
+	sprintf(path, "%s/%s", codec_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 */