decklink-output-ui: Stop outputs when unloading
When closing OBS, sometimes it would crash if the Decklink outputs were active.
This commit is contained in:
parent
b28f99d4cd
commit
f4c36460c8
@ -330,3 +330,12 @@ bool obs_module_load(void)
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
void obs_module_unload(void)
|
||||
{
|
||||
if (preview_output_running)
|
||||
preview_output_stop();
|
||||
|
||||
if (main_output_running)
|
||||
output_stop();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user