[Libav-user] multithreaded problems

Karoly Horvath rhswdev at gmail.com
Wed Nov 9 19:06:55 CET 2011


Hi guys,

I have multiple threads which do simultaneous demultiplexing for different
streams.

Most of the times it works fine, but sometimes a see these messages at
startup:
[NULL @ 0x7fffa4006120] insufficient thread locking around
avcodec_open/close()
Also it sometimes fails to do avcodec_open (it's the same stream, nothing
changed..)

I have a global mutex for the threads so at any point only one thread can
make those API calls.

Any idea what the problem is?

thx

-- 
Karoly Horvath
http://softwaredevel.wikispaces.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20111109/14558242/attachment.html>


More information about the Libav-user mailing list