CyberAgent/android-gpuimage — pull request #64 by lukesleeman (2013-08-01 01:40:35+00:00)
Title: Fixed deadlock in getBitmapWithFilterApplied

There is a deadlock that occurs in getBitmapWithFilterApplied, on older devices. The call to requestRender(), and the runnable that calls mFilter.notify() completes, before the calling thread can reach the mFilter.wait() on line 274. Because mFilter.notify() has been called already, the call to wait() never completes.

This change means the synchronised block starting on line 265 will not run until the calling thread gives up the synchronized lock by calling mFilter.wait() on line 274.