Mercurial > mplayer.hg
comparison loader/driver.c @ 128:28091b3caff9
DLL loader updated from avifile-0.60beta4
author | arpi_esp |
---|---|
date | Sun, 18 Mar 2001 01:01:03 +0000 |
parents | 3b5f5d1c5041 |
children | b2dfe79ffb9f |
comparison
equal
deleted
inserted
replaced
127:d0b331c91b3a | 128:28091b3caff9 |
---|---|
11 #include <wine/pe_image.h> | 11 #include <wine/pe_image.h> |
12 #include <wine/winreg.h> | 12 #include <wine/winreg.h> |
13 #include <wine/vfw.h> | 13 #include <wine/vfw.h> |
14 #include <registry.h> | 14 #include <registry.h> |
15 | 15 |
16 //#include "com.h" | 16 #include "com.h" |
17 //typedef long STDCALL (*GETCLASS) (GUID*, GUID*, void**); | 17 typedef long STDCALL (*GETCLASS) (GUID*, GUID*, void**); |
18 | 18 |
19 | 19 |
20 #ifdef __FreeBSD__ | 20 #ifdef __FreeBSD__ |
21 #include <sys/time.h> | 21 #include <sys/time.h> |
22 #endif | 22 #endif |
116 { | 116 { |
117 DrvFree(hdrvr); | 117 DrvFree(hdrvr); |
118 } | 118 } |
119 | 119 |
120 | 120 |
121 char* def_path=WIN32_PATH; // path to codecs | 121 extern char* def_path; //=WIN32_PATH; // path to codecs |
122 char* win32_codec_name=NULL; // must be set before calling DrvOpen() !!! | 122 char* win32_codec_name=NULL; // must be set before calling DrvOpen() !!! |
123 | 123 |
124 HDRVR | 124 HDRVR |
125 DrvOpen(LPARAM lParam2) | 125 DrvOpen(LPARAM lParam2) |
126 { | 126 { |
153 } | 153 } |
154 #endif | 154 #endif |
155 | 155 |
156 if (!(npDriver->DriverProc = (DRIVERPROC) | 156 if (!(npDriver->DriverProc = (DRIVERPROC) |
157 GetProcAddress(npDriver->hDriverModule, "DriverProc"))) { | 157 GetProcAddress(npDriver->hDriverModule, "DriverProc"))) { |
158 #if 1 | 158 #if 0 |
159 printf("Library %s is not a VfW/ACM valid codec\n", win32_codec_name); | 159 printf("Library %s is not a VfW/ACM valid codec\n", win32_codec_name); |
160 #else | 160 #else |
161 // Try DirectShow... | 161 // Try DirectShow... |
162 GETCLASS func=(GETCLASS)GetProcAddress(npDriver->hDriverModule,"DllGetClassObject"); | 162 GETCLASS func=(GETCLASS)GetProcAddress(npDriver->hDriverModule,"DllGetClassObject"); |
163 if(!func) | 163 if(!func) |