changeset 26384:59db094d3494

Check for drvc.dll entries for mingw32
author zuxy
date Sat, 12 Apr 2008 18:19:51 +0000
parents afd1f5da8e99
children 3d02fa79ae6c
files libmpcodecs/vd_realvid.c
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vd_realvid.c	Sat Apr 12 16:23:43 2008 +0000
+++ b/libmpcodecs/vd_realvid.c	Sat Apr 12 18:19:51 2008 +0000
@@ -224,6 +224,17 @@
 #endif
 	return 1;
     }
+
+    wrvyuv_custom_message = GetProcAddress(handle, "RV40toYUV420CustomMessage");
+    wrvyuv_free = GetProcAddress(handle, "RV40toYUV420Free");
+    wrvyuv_init = GetProcAddress(handle, "RV40toYUV420Init");
+    wrvyuv_transform = GetProcAddress(handle, "RV40toYUV420Transform");
+    if(wrvyuv_custom_message &&
+       wrvyuv_free &&
+       wrvyuv_init &&
+       wrvyuv_transform)
+	return 1;
+
     mp_msg(MSGT_DECVIDEO,MSGL_WARN,"Error resolving symbols! (version incompatibility?)\n");
     FreeLibrary(handle);
     return 0; // error