obs-outputs: Call free_packets in init_connect
This may end up being a bit redundant, but it's just to ensure that the packet buffer is free before connecting.master
parent
d4df6c191f
commit
07254d0390
|
@ -641,6 +641,8 @@ static bool init_connect(struct rtmp_stream *stream)
|
||||||
if (stopping(stream))
|
if (stopping(stream))
|
||||||
pthread_join(stream->stop_thread, NULL);
|
pthread_join(stream->stop_thread, NULL);
|
||||||
|
|
||||||
|
free_packets(stream);
|
||||||
|
|
||||||
service = obs_output_get_service(stream->output);
|
service = obs_output_get_service(stream->output);
|
||||||
if (!service)
|
if (!service)
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue