• Jan Schmidt's avatar
    webrtc: Fix a race on shutdown. · f14d3906
    Jan Schmidt authored
    The main context can disappear in gst_webrtc_bin_enqueue_task()
    between checking the is_closed flag and enqueueing a source on the
    main context. Protect the main context with the object lock instead
    of the PC lock, and hold a ref briefly to make sure it stays alive.
    
    Part-of: <!1746>
    f14d3906