Update of /cvsroot/mplayer/main/loader In directory mail:/var/tmp.root/cvs-serv6047 Modified Files: module.c Log Message: ugly hack for morgands Index: module.c =================================================================== RCS file: /cvsroot/mplayer/main/loader/module.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- module.c 11 Dec 2001 22:58:13 -0000 1.6 +++ module.c 21 Apr 2002 16:11:42 -0000 1.7 @@ -405,7 +405,14 @@ 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; }
On Sunday 21 April 2002 18:11, Alex Beregszaszi wrote:
Update of /cvsroot/mplayer/main/loader In directory mail:/var/tmp.root/cvs-serv6047
Modified Files: module.c Log Message: ugly hack for morgands
could you comment what it does?
Index: module.c =================================================================== RCS file: /cvsroot/mplayer/main/loader/module.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- module.c 11 Dec 2001 22:58:13 -0000 1.6 +++ module.c 21 Apr 2002 16:11:42 -0000 1.7 @@ -405,7 +405,14 @@
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; }
_______________________________________________ Mplayer-cvslog mailing list Mplayer-cvslog@mplayerhq.hu http://mplayerhq.hu/mailman/listinfo/mplayer-cvslog
-- Best Regards, Atmos ____________________________________________ - MPlayer Developer - http://mplayerhq.hu/ - ____________________________________________
Hi,
Modified Files: module.c Log Message: ugly hack for morgands
could you comment what it does?
Morgan MJPEG DirectShow decoder loads VfW Morgan DLL and for that we need to set win32_codec_name for DrvOpen (called from ICOpen which one is called from Morgan DS DLL) Morgan DShow -> ICOpen -> DrvOpen -> Morgan VfW - alex
participants (3)
-
Alex Beregszaszi -
Alex Beregszaszi -
Felix Buenemann