obs-outputs: Fix crash with quit while connecting
We need to stop the stream even if it hasn't finished opening yet, to make sure threads are cleaned up properly.
This commit is contained in:
@@ -98,7 +98,7 @@ static void rtmp_stream_destroy(void *data)
|
||||
{
|
||||
struct rtmp_stream *stream = data;
|
||||
|
||||
if (stream->active)
|
||||
if (stream->connecting || stream->active)
|
||||
rtmp_stream_stop(data);
|
||||
|
||||
if (stream) {
|
||||
|
Reference in New Issue
Block a user