[MPlayer-dev-eng] Re: using pthreads with mplayer

Guillaume POIRIER poirierg at gmail.com
Tue Jul 5 17:28:21 CEST 2005


Hi,

On 7/5/05, Andrea Palmatè <andrea at amigasoft.net> wrote:
> At 13:37 05/07/2005, you wrote:
> >lol, there are no pthreads in MPlayer, at all. Disregarding -cache, MPlayer
> >is a completely single-threaded program. You're possibly thinking of
> >MPlayerXP, which is a threaded version of MPlayer. The way it works is by
> >making threads to decode the picture, and a single thread which each time
> >shows a new frame on the VO. Whether this speeds this up or not is
> >debatable, but not here.
> Strange because i've found in the config.h i've found:
> 
> /* Define this if your system has pthreads */
> #define HAVE_PTHREADS 1
> 
> and in config.mak
> 
> HAVE_PTHREADS = yes
> 
> searching thru the code i've found a pthread.c (in libavcodec) that is
> compiled on my system. so it is useless?

Certainly not! :)

My guess is that it's used either by x264 to encode, or libacodec to
decode H.264 streams, or both! :)

Guillaume
-- 
A woman isn't complete without a man.
But where do you find a man - a real man - these
days?
  -- Lauren Bacall
My answer: Only at #mplayerdev on the freenode IRC network.




More information about the MPlayer-dev-eng mailing list