[ffmpeg-devel] question about SDL_LockMutex in ffplay
Fri Jul 8 12:06:14 CEST 2005
I am really confused with the SDL_LockMutex used in ffplay, I noticed that
when some one want to access a shared resource, it first locked it, but then
for another one to modify it, and if the other one want to modify it, it
must first lock
it too, but shouldn't a mutex can only be locked one time at the same time ?
With some printf output, i found that every mutex can be locked twice, it
correct behaviour ?
If a lock the mutex twice such as in function queue_picture, then when it
SDL_CondWait, there is no chance others to acquire the mutex, so others
Any help would be greatly appreciated.
More information about the ffmpeg-devel