Skip to content

Commit

Permalink
obs-outputs: Always call RTMP_Init before connecting
Browse files Browse the repository at this point in the history
Clears/reinitializes RTMP structure to defaults, preventing data from
potentially persisting between different connections.

Closes #878
  • Loading branch information
sorayuki authored and jp9000 committed Apr 30, 2017
1 parent 012b5ef commit 0ea0b99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/obs-outputs/rtmp-stream.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 0ea0b99

Please sign in to comment.