stop method
Implementation
bool stop() {
if (_output == null) return false;
DiveSystemLog.message('DiveRecordingOutput.stop');
obslib.outputStop(_output!);
obslib.outputRelease(_output!);
_output = null;
// Assume the state is now stopped. However, this is making an assumption. It takes a short
// amount of time for the output to actually be fully stopped.
// TODO: This should be improved to use signals and other techniques to determine when the output
// has stopped.
DiveCore.container.read(provider.notifier).state = DiveOutputRecordingState.stopped;
return true;
}