Le 11 juin 2010 à 15:36, Walter P. Mondale a écrit : > I am trying to open multiple files simultaneously and noticed that I > started getting errors such as "insufficient thread locking around > avcodec_open/close" Even when I had the call properly locked. I found > out that if I locked the 'av_find_stream_info' call that this error > went away, but my program took a very long time. Upon further > inspection I noticed that 'av_find_stream_info' was actually calling > 'avcodec_open'. > > Is there any way for 'av_find_stream_info' to lock its own calls to > avcodec_open, so that the thread-safe portions of the function dont > have to be unnecessarily locked? > > Is there a better solution for opening lots of files at once?
Don't lock yourself. Install a lock handler by using av_lockmgr_register(); -- Jean-Daniel _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
