[MPlayer-advusers] mplayer crash when geometry changes
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Mon Dec 5 19:44:38 CET 2011
On Sat, Dec 03, 2011 at 01:44:34PM -0700, David Hollister wrote:
> Index: libmpcodecs/dec_video.c
> ===================================================================
> --- libmpcodecs/dec_video.c (revision 34378)
> +++ libmpcodecs/dec_video.c (working copy)
> @@ -423,12 +423,16 @@
> #if HAVE_MMX
> // some codecs are broken, and doesn't restore MMX state :(
> // it happens usually with broken/damaged files.
> +#if HAVE_AMD3DNOW
> if (gCpuCaps.has3DNow) {
> __asm__ volatile ("femms\n\t":::"memory");
> - } else if (gCpuCaps.hasMMX) {
> + } else
> +#else
> + if (gCpuCaps.hasMMX) {
> __asm__ volatile ("emms\n\t":::"memory");
> }
> #endif
> +#endif
I think I have come up with a simpler and actually working method
(won't work with -O0 though).
More information about the MPlayer-advusers
mailing list