• Jan Alexander Steffens's avatar
    pad: Keep IDLE probe hook alive during immediate callback · 148ac71a
    Jan Alexander Steffens authored
    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>
    148ac71a