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
jp9000 2015-11-17 07:51:46 -08:00
parent d4df6c191f
commit 07254d0390
1 changed files with 2 additions and 0 deletions

View File

@ -641,6 +641,8 @@ static bool init_connect(struct rtmp_stream *stream)
if (stopping(stream))
pthread_join(stream->stop_thread, NULL);
free_packets(stream);
service = obs_output_get_service(stream->output);
if (!service)
return false;