[vdr] Problems with cCutter::Active()
martinprochnow at yahoo.de
Sat Jul 28 16:56:04 CEST 2007
Udo Richter schrieb:
> Martin Prochnow wrote:
>> I call in my plugin in a loop (in a thread) cCutter::Active() every
>> second. If I stop an editing process over the main menu entry, VDR
>> crashes from time to time:
> cCutter::Active is more than a simple query function. It also does the
> cleanup of the thread, the error handling and the external script calls.
> Because of that, the function is not thread safe, and can only be called
> from the main thread. The double free is probably because both threads
> try to free cCutter::editedVersionName at the same time.
Is there another way to check for a running editing process from a
plugin? Or some kind of workaround?
More information about the vdr