[MPlayer-cygwin] vf_screenshot in mingw

Erik Lunchpail erik_27can at yahoo.com
Mon Sep 12 19:43:40 CEST 2005


Another mingw header problem :(

vf_screenshot.c:168:97: warning: trigraph ??) ignored,
use -trigraphs to enable
vf_screenshot.c:290: error: conflicting types for
'open'
C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.4/../../../../include/io.h:280:
error: previous declaration of 'open' was here
vf_screenshot.c:290: error: conflicting types for
'open'
C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.4/../../../../include/io.h:280:
error: previous declaration of 'open' was here
make[1]: *** [vf_screenshot.o] Error 1
make[1]: Leaving directory
`/mingw/MPlayer-20050912/libmpcodecs'
make: *** [libmpcodecs/libmpcodecs.a] Error 2

The quick and dirty fix is to just rename open in
vf_screenshot.c

Also, might I suggest using gettimeofday to avoid
overwriting some screenshots when switching movies
that are in the same directory. Attached is a simple
patch that I use.

Regards,
Erik


	

	
		
__________________________________________________________ 
Find your next car at http://autos.yahoo.ca
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vf_screenshot.diff
Type: application/octet-stream
Size: 688 bytes
Desc: 696900439-vf_screenshot.diff
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-cygwin/attachments/20050912/8a1f70b6/attachment.obj>


More information about the MPlayer-cygwin mailing list