From c69b70b84738c5abd19571b23f4ff4087ecfe6fb Mon Sep 17 00:00:00 2001 From: jp9000 Date: Tue, 17 Feb 2015 20:38:23 -0800 Subject: [PATCH] obs-outputs: Fix bug (RTMP only working once) This was caused to do the new RTMP code that added support for multiple streams; the stream index needs to be reset on RTMP_Close otherwise it will keep using the wrong stream information. --- plugins/obs-outputs/librtmp/rtmp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/obs-outputs/librtmp/rtmp.c b/plugins/obs-outputs/librtmp/rtmp.c index e983468ad..0e53454cb 100644 --- a/plugins/obs-outputs/librtmp/rtmp.c +++ b/plugins/obs-outputs/librtmp/rtmp.c @@ -4252,6 +4252,7 @@ RTMP_Close(RTMP *r) r->Link.streams[idx].playpath.av_val = NULL; } + r->Link.curStreamIdx = 0; r->Link.nStreams = 0; #endif }