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

Vladimir Voroshilov voroshil at gmail.com
Mon May 6 06:02:08 CEST 2013


2013/5/5 Vladimir Voroshilov <voroshil at gmail.com>:
> 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.

Previous patch contains error in atomics-gcc check (missing header file).
Here is updated version.


>
> --
> Vladimir Voroshilov     mailto:voroshil at gmail.com
> Jabber: voroshil at gmail.com
> ICQ: 95587719



-- 
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-v2.patch
Type: application/octet-stream
Size: 2177 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20130506/915e4590/attachment.obj>


More information about the MPlayer-dev-eng mailing list