[MPlayer-dev-eng] [PATCH] Fix MPlayer build under mingw32 withoud pthreads with recent FFmpeg

Vladimir Voroshilov voroshil at gmail.com
Sun May 5 01:38:31 CEST 2013


Attached patch fixes building MPlayer with recent FFmpeg using mingw32
without pthreads.

Without this patch building stops at compiling
ffmpeg/libavutil/atomic.c with error:
"Threading is enabled, but there is no implementation of atomic
operations available"

This "#error" is triggered inside atomic.c when HAVE_THREADS is
enabled (since w32threads is available) and HAVE_ATOMICS_NATIVE
undefined
(since no such tests in configure)

Patch adds related tests to MPlayer's configure script (code got from
FFmpg's configure script)

I hope this patch will be helpful for somebody.

-- 
Vladimir Voroshilov     mailto:voroshil at gmail.com
Jabber: voroshil at gmail.com
ICQ: 95587719
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-fix-ffmpeg-atomics-compilation-error.patch
Type: application/octet-stream
Size: 2171 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20130505/8c75991f/attachment.obj>


More information about the MPlayer-dev-eng mailing list