gst: Prevent a crash when stopping device provider
The provider might fail to connect to the PipeWire core when starting up, so when stopping we need to check the core is valid before attempting to acquire a mutex on its loop.
Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.
The provider might fail to connect to the PipeWire core when starting up, so when stopping we need to check the core is valid before attempting to acquire a mutex on its loop.