Commit 148ac71a authored by Jan Alexander Steffens's avatar Jan Alexander Steffens
Browse files

pad: Keep IDLE probe hook alive during immediate callback

When the probe returns GST_PAD_PROBE_REMOVE and gets called concurrently
from the streaming thread while we're in the callback here, the hook has
already been destroyed by the time we've reacquired the object lock.
Consequently, cleanup_hook gets passed an invalid pointer.

Keep another reference to the hook alive to avoid this situation.

Part-of: <!873>
parent 637b0d8d
Pipeline #387633 waiting for manual action with stages
in 1 minute and 41 seconds