comparison libmpcodecs/dec_video.c @ 10272:7b0bc557987b

renames: DATADIR->MPLAYER_DATADIR, CONFDIR->MPLAYER_CONFDIR, LIBDIR->MPLAYER_LIBDIR
author arpi
date Mon, 09 Jun 2003 12:15:48 +0000
parents c9dcb67e9638
children aefe3c85ee19
comparison
equal deleted inserted replaced
10271:f0e14d641160 10272:7b0bc557987b
185 int buf_len; 185 int buf_len;
186 char *buf; 186 char *buf;
187 vd_functions_t *funcs_sym; 187 vd_functions_t *funcs_sym;
188 vd_info_t *info_sym; 188 vd_info_t *info_sym;
189 189
190 buf_len = strlen(LIBDIR)+strlen(sh_video->codec->drv)+16; 190 buf_len = strlen(MPLAYER_LIBDIR)+strlen(sh_video->codec->drv)+16;
191 buf = malloc(buf_len); 191 buf = malloc(buf_len);
192 if (!buf) 192 if (!buf)
193 break; 193 break;
194 snprintf(buf, buf_len, "%s/mplayer/vd_%s.so", LIBDIR, sh_video->codec->drv); 194 snprintf(buf, buf_len, "%s/mplayer/vd_%s.so", MPLAYER_LIBDIR, sh_video->codec->drv);
195 mp_msg(MSGT_DECVIDEO, MSGL_DBG2, "Trying to open external plugin: %s\n", buf); 195 mp_msg(MSGT_DECVIDEO, MSGL_DBG2, "Trying to open external plugin: %s\n", buf);
196 sh_video->dec_handle = dlopen(buf, RTLD_LAZY); 196 sh_video->dec_handle = dlopen(buf, RTLD_LAZY);
197 if (!sh_video->dec_handle) 197 if (!sh_video->dec_handle)
198 break; 198 break;
199 snprintf(buf, buf_len, "mpcodecs_vd_%s", sh_video->codec->drv); 199 snprintf(buf, buf_len, "mpcodecs_vd_%s", sh_video->codec->drv);
205 if (strcmp(info_sym->short_name, sh_video->codec->drv)) 205 if (strcmp(info_sym->short_name, sh_video->codec->drv))
206 break; 206 break;
207 free(buf); 207 free(buf);
208 mpvdec = funcs_sym; 208 mpvdec = funcs_sym;
209 mp_msg(MSGT_DECVIDEO, MSGL_V, "Using external decoder plugin (%s/mplayer/vd_%s.so)!\n", 209 mp_msg(MSGT_DECVIDEO, MSGL_V, "Using external decoder plugin (%s/mplayer/vd_%s.so)!\n",
210 LIBDIR, sh_video->codec->drv); 210 MPLAYER_LIBDIR, sh_video->codec->drv);
211 } 211 }
212 #endif 212 #endif
213 if(!mpvdec){ // driver not available (==compiled in) 213 if(!mpvdec){ // driver not available (==compiled in)
214 mp_msg(MSGT_DECVIDEO,MSGL_WARN,MSGTR_VideoCodecFamilyNotAvailableStr, 214 mp_msg(MSGT_DECVIDEO,MSGL_WARN,MSGTR_VideoCodecFamilyNotAvailableStr,
215 sh_video->codec->name, sh_video->codec->drv); 215 sh_video->codec->name, sh_video->codec->drv);