SmushPlayer can crash while using threaded timer
|Reported by:||SF/uweryssel||Owned by:||aquadran|
The SmushPlayer class isn't secure, while using a threaded timer.
When the SmushPlayer object is destructed it can be happen that the timer callback is still running, because the callback is launched by another thread.
Removing the callback in the destructor can't remove the problem, because it only prevents new callback runs and not stop the current one.
My solution is to wait 500ms after the removeTimerProc, so all running callbacks can be processed. But this is not the best solution.
I've seen the same bug in IMuseDigital class too.
Ticket imported from: #996674. Ticket imported from: bugs/1684.