mplayer stopped compiling for windows

Stephen Sheldon <[email protected]>
Newsgroups gmane.comp.video.mplayer.devel
Message-ID <[email protected]>
I tried to compile a GUI version of mplayer for Windows after a long 
hiatus. I ran into 2 problems.

I found a compilation error in libvo/gl* because XVisualInfo was not 
defined.  Attached is a patch to fix it.

I also had a problem with ffmpeg/libavformat/udp.c.  I found a report on 
the ffmpeg mailing and a solution.  _WIN32_WINNT has to be at least 
0600.  Windows XP is not supported by ffmpeg. I added a definition to my 
config script in "extra-cflags".  Maybe the configure script should be 
enhanced.

With these two changes I successfully compiled mplayer on Windows.

_______________________________________________
MPlayer-dev-eng mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng
patch (text/plain, 450 B)
Index: libvo/gl_common.h
===================================================================
--- libvo/gl_common.h	(revision 38175)
+++ libvo/gl_common.h	(working copy)
@@ -316,6 +316,7 @@
 extern void* (GLAPIENTRY *mpglAllocateMemoryMESA)(void *, int, size_t, float, float, float);
 extern void (GLAPIENTRY *mpglFreeMemoryMESA)(void *, int, void *);
 
+#ifdef CONFIG_GL_X11
 extern XVisualInfo *gl_vinfo;
-
+#endif
 #endif /* MPLAYER_GL_COMMON_H */
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.