From b7e24c2758c2bbfa19eb406f9de93456ab8f2908 Mon Sep 17 00:00:00 2001 From: zuxy Date: Sat, 12 Apr 2008 18:19:51 +0000 Subject: [PATCH] Check for drvc.dll entries for mingw32 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26416 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/vd_realvid.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/libmpcodecs/vd_realvid.c b/libmpcodecs/vd_realvid.c index dee690a895..d410612257 100644 --- a/libmpcodecs/vd_realvid.c +++ b/libmpcodecs/vd_realvid.c @@ -224,6 +224,17 @@ static int load_syms_windows(char *path) { #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