[MPlayer-users] An Error about the critical section

yuke guqinwei at magima.com.cn
Fri Nov 1 02:42:02 CET 2002


Hello, mplayer-users,

If i enable the cache,Then the mplayer run in 2 processes.But i found that this two processers share the cache.So the things in the cache_var_t struct are critical sections.
They will make problems.And in actural,when i modified the config file with cache < 100,the problem is so severe that it can not decode audio or video right.But in the file of "cache.c",i find "Note it runs in 2 processes (using fork()), but doesn't requires locking!!" .
	
why u think there is no need of locking??   // confusing!! 

Best regards. 

yuke
guqinwei at magima.com.cn
2002-11-01





More information about the MPlayer-users mailing list