[MPlayer-dev-eng] Adding threaded functionality to mplayer

Ed Wildgoose lists at wildgooses.com
Wed Aug 25 16:18:28 CEST 2004


Diego Biurrun wrote:

>Ed Wildgoose writes:
>  
>
>>What would people say to adding multithreaded coding to mplayer?  The 
>>idea would be to run the audio decoder and video decoder in their own 
>>seperate threads. 
>>    
>>
>
>Almost nobody around here likes threads.
>  
>

Fair enough.  It needs more careful programming.  However, it seems to 
make some of the logic easier to understand as well.

Main() is a huge statemachine right now, and seems to be crying out to 
be reformatted into a more event based approach, however, threads are 
another approach that might be worth thinking about.


>>Do we support any architectures that make writing threads particularly 
>>troublesome?  Win32 for example?
>>    
>>
>
>Yes, we support Windows.
>  
>

I know you support Windows, I run it on there occasionally.  I meant: 
are threads a pain there?

Ed W




More information about the MPlayer-dev-eng mailing list