/** * Stop graph execution. This is an asynchronous call; register a callback with setDoneCallback to * be notified of when the background processing has been completed. Calling stop will close the * filter graph. */ @Override public synchronized void stop() { if (mRunTask != null && !mRunTask.isCancelled()) { if (mLogVerbose) Log.v(TAG, "Stopping graph."); mRunTask.cancel(false); } }