[MPlayer-cygwin] Re: mplayer uses to much CPU on cygwin

Sascha Sommer saschasommer at freenet.de
Sat Jul 19 14:34:45 CEST 2003


> Sascha Sommer wrote:
>
> >>>Also try the attached patch. The mingw build has this applied.
> >>>If you use win98 redirecting mplayer's output or the -quiet option may
> >
> > give
> >
> >>>you a big performance gain.
> >>
> >>I tried the patch. I guess it works well for mingw, but it doesn't work
> >>for cygwin:
> >>
> >>mplayer.o(.text+0x2954):mplayer.c: undefined reference to
> >>`_GetCurrentProcess'
> >>mplayer.o(.text+0x295c):mplayer.c: undefined reference to
> >>`_SetPriorityClass'
> >>collect2: ld returned 1 exit status
> >>make: *** [mplayer] Error 1
> >
> > Dunno what is wrong. It should link to Kernel32 by default.
> > Anyway the patch won't get into cvs in its current state because
> > it is causing problems at uninit for me.
>
> If the #ifdef is __MINGW32__ instead of WIN32 it compiles fine on
> Cygwin.  Does it still have other problems?
>

Yes, on uninit ao win32 sometimes needs a few secs to close the device.
With this patch applied mplayer will use all the cpu power available to wait
and
the whole system will lock for this time.

Sascha



More information about the MPlayer-cygwin mailing list