|
From: Dan D. <da...@de...> - 2005-08-26 03:41:00
|
On Thursday 25 August 2005 07:26 pm, pl...@ip... wrote: > Hi all, > > I discovered, that dv_cleanup(void) frees all statically allocated memory. > The problem is, that the right time for calling this function cannot be > determined, if we have a modular program (e.g. which does en- and decoding > in multiple threads). Yes, this problem affects MLT as well, but we did something to workaround. Don't ask me the details now because I am in hurry at the moment as I prepare for a move across the country (USA). > - Better solution IMHO: Call dv_cleanup() automatically by a function, > which has __attribute__ ((destructor)). This is a gcc only solution, > but It's portable and works fine in ffmpeg and libquicktime. When I return to normal life, I will see if any objections have been raised before persuing this. Thanks, Burkhard. Keep up the good work as usual! +-DRD-+ |