From 7a4c5e5df22055084c55851747cf2da08fcb23ec Mon Sep 17 00:00:00 2001 From: Richard Stanway Date: Sat, 25 Jan 2020 17:01:14 +0100 Subject: [PATCH] obs-outputs: Enable logging before calling RTMP_Init Errors or warnings in RTMP_Init were not copied to the OBS log file if they occured before the callback was set. --- plugins/obs-outputs/rtmp-stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/obs-outputs/rtmp-stream.c b/plugins/obs-outputs/rtmp-stream.c index df8b71bdc..157ed306f 100644 --- a/plugins/obs-outputs/rtmp-stream.c +++ b/plugins/obs-outputs/rtmp-stream.c @@ -145,8 +145,8 @@ static void *rtmp_stream_create(obs_data_t *settings, obs_output_t *output) stream->output = output; pthread_mutex_init_value(&stream->packets_mutex); - RTMP_Init(&stream->rtmp); RTMP_LogSetCallback(log_rtmp); + RTMP_Init(&stream->rtmp); RTMP_LogSetLevel(RTMP_LOGWARNING); if (pthread_mutex_init(&stream->packets_mutex, NULL) != 0)