From 3c79c0499e37fd7643bac9e7214c71927c2f4d15 Mon Sep 17 00:00:00 2001 From: alex Date: Sun, 21 Apr 2002 16:11:42 +0000 Subject: [PATCH] ugly hack for morgands git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5769 b3059339-0415-0410-9bf9-f77b7e298cf2 --- loader/module.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/loader/module.c b/loader/module.c index 2e38b66ea0..41393f5e34 100644 --- a/loader/module.c +++ b/loader/module.c @@ -405,7 +405,14 @@ HMODULE WINAPI LoadLibraryExA(LPCSTR libname, HANDLE hfile, DWORD flags) if (!wm) printf("Win32 LoadLibrary failed to load: %s\n", checked); - + else + { + extern char *win32_codec_name; + printf("Loaded %s to address %p\n", libname, wm->module); + /* XXX: FIXME, _VERY_ UGLY HACK */ + if (!strcmp(libname, "m3jpegdec.ax")) + win32_codec_name = strdup("m3jpeg32.dll"); + } return wm ? wm->module : 0; }