comparison libmpcodecs/vd_realvid.c @ 26398:f79cdff78e10

Set dll_type and rv_handle for drvc.dll
author zuxy
date Sun, 13 Apr 2008 02:35:30 +0000
parents b65cf3a35900
children 63630c09e237
comparison
equal deleted inserted replaced
26397:f250e353a56b 26398:f79cdff78e10
230 wrvyuv_init = GetProcAddress(handle, "RV40toYUV420Init"); 230 wrvyuv_init = GetProcAddress(handle, "RV40toYUV420Init");
231 wrvyuv_transform = GetProcAddress(handle, "RV40toYUV420Transform"); 231 wrvyuv_transform = GetProcAddress(handle, "RV40toYUV420Transform");
232 if(wrvyuv_custom_message && 232 if(wrvyuv_custom_message &&
233 wrvyuv_free && 233 wrvyuv_free &&
234 wrvyuv_init && 234 wrvyuv_init &&
235 wrvyuv_transform) 235 wrvyuv_transform) {
236 dll_type = 1;
237 rv_handle = handle;
236 return 1; 238 return 1;
239 }
237 240
238 mp_msg(MSGT_DECVIDEO,MSGL_WARN,"Error resolving symbols! (version incompatibility?)\n"); 241 mp_msg(MSGT_DECVIDEO,MSGL_WARN,"Error resolving symbols! (version incompatibility?)\n");
239 FreeLibrary(handle); 242 FreeLibrary(handle);
240 return 0; // error 243 return 0; // error
241 } 244 }