Add a wait method with no timeout.
Add a keyAdded public method and a semaphore to make the GStreamer thread wait for the license. We signal the semaphore in all cases where the player could be interrupted.
Make sure we close and clean the Discretix handler. Refactor the name to respect coding style.