From 07254d0390dcd076e7e68abca1f0131a79c054fe Mon Sep 17 00:00:00 2001 From: jp9000 Date: Tue, 17 Nov 2015 07:51:46 -0800 Subject: [PATCH] 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. --- plugins/obs-outputs/rtmp-stream.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/obs-outputs/rtmp-stream.c b/plugins/obs-outputs/rtmp-stream.c index 7e06d877b..0efe5cbbc 100644 --- a/plugins/obs-outputs/rtmp-stream.c +++ b/plugins/obs-outputs/rtmp-stream.c @@ -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;