mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
obs-outputs: Always call RTMP_Init before connecting
Clears/reinitializes RTMP structure to defaults, preventing data from potentially persisting between different connections. Closes jp9000/obs-studio#878
This commit is contained in:
@@ -718,7 +718,7 @@ static int try_connect(struct rtmp_stream *stream)
|
||||
|
||||
info("Connecting to RTMP URL %s...", stream->path.array);
|
||||
|
||||
memset(&stream->rtmp.Link, 0, sizeof(stream->rtmp.Link));
|
||||
RTMP_Init(&stream->rtmp);
|
||||
if (!RTMP_SetupURL(&stream->rtmp, stream->path.array))
|
||||
return OBS_OUTPUT_BAD_PATH;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user