summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/libw32dll/w32codec.c25
-rw-r--r--src/libw32dll/wine/driver.c7
-rw-r--r--src/libw32dll/wine/win32.c7
3 files changed, 27 insertions, 12 deletions
diff --git a/src/libw32dll/w32codec.c b/src/libw32dll/w32codec.c
index fece0e57e..44030ce84 100644
--- a/src/libw32dll/w32codec.c
+++ b/src/libw32dll/w32codec.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: w32codec.c,v 1.9 2001/07/04 14:05:09 uid56437 Exp $
+ * $Id: w32codec.c,v 1.10 2001/07/14 16:55:11 guenter Exp $
*
* routines for using w32 codecs
*
@@ -40,6 +40,7 @@
#include "xine_internal.h"
extern char* win32_codec_name;
+extern char* win32_def_path;
typedef struct w32v_decoder_s {
video_decoder_t video_decoder;
@@ -189,6 +190,8 @@ static void w32v_init_codec (w32v_decoder_t *this) {
uint32_t vo_cap;
int outfmt;
+ printf ("init codec...\n");
+
vo_cap = this->video_out->get_capabilities (this->video_out);
if (vo_cap & VO_CAP_YUY2)
outfmt = IMGFMT_YUY2;
@@ -574,8 +577,16 @@ video_decoder_t *init_video_decoder_plugin (int iface_version, config_values_t *
w32v_decoder_t *this ;
- if (iface_version != 1)
+ if (iface_version != 1) {
+ printf( "w32codec: plugin doesn't support plugin API version %d.\n"
+ "w32codec: this means there's a version mismatch between xine and this "
+ "w32codec: decoder plugin.\nInstalling current input plugins should help.\n",
+ iface_version);
+
return NULL;
+ }
+
+ win32_def_path = cfg->lookup_str (cfg, "win32_path", "/usr/lib/win32");
this = (w32v_decoder_t *) malloc (sizeof (w32v_decoder_t));
@@ -593,8 +604,16 @@ audio_decoder_t *init_audio_decoder_plugin (int iface_version, config_values_t *
w32a_decoder_t *this ;
- if (iface_version != 1)
+ if (iface_version != 1) {
+ printf( "w32codec: plugin doesn't support plugin API version %d.\n"
+ "w32codec: this means there's a version mismatch between xine and this "
+ "w32codec: decoder plugin.\nInstalling current input plugins should help.\n",
+ iface_version);
+
return NULL;
+ }
+
+ win32_def_path = cfg->lookup_str (cfg, "win32_path", "/usr/lib/win32");
this = (w32a_decoder_t *) malloc (sizeof (w32a_decoder_t));
diff --git a/src/libw32dll/wine/driver.c b/src/libw32dll/wine/driver.c
index 53d82ccb5..1a1c99bf7 100644
--- a/src/libw32dll/wine/driver.c
+++ b/src/libw32dll/wine/driver.c
@@ -107,13 +107,8 @@ void DrvClose(HDRVR hdrvr)
DrvFree(hdrvr);
}
-
-#ifdef WIN32_PATH
-char* def_path=WIN32_PATH; // path to codecs
-#else
-char* def_path="/usr/lib/win32"; // path to codecs
-#endif
char* win32_codec_name=NULL; // must be set before calling DrvOpen() !!!
+char* win32_def_path =NULL; // must be set before calling DrvOpen() !!!
HDRVR
DrvOpen(LPARAM lParam2)
diff --git a/src/libw32dll/wine/win32.c b/src/libw32dll/wine/win32.c
index df06fe53b..b4ec59ef3 100644
--- a/src/libw32dll/wine/win32.c
+++ b/src/libw32dll/wine/win32.c
@@ -1215,16 +1215,17 @@ int WINAPI expGetModuleFileNameA(int module, char* s, int len)
int WINAPI expSetUnhandledExceptionFilter(void* filter)
{
dbgprintf("SetUnhandledExcFilter\n");
- return 1;//unsupported and probably won't ever be supported
+ return 1;/*unsupported and probably won't ever be supported */
}
-extern char* def_path;
+
+extern char* win32_def_path;
int WINAPI expLoadLibraryA(char* name)
{
char qq[256];
dbgprintf("LoadLibraryA\n");
printf("They want library %s\n", name);
- strcpy(qq, def_path);
+ strcpy(qq, win32_def_path);
strcat(qq, "/");
strcat(qq, name);
return LoadLibraryA(qq);