[FFmpeg-devel] [PATCH 3/3] librist: set logsocket config to -1

Gijs Peskens gijs at peskens.net
Tue Sep 28 11:22:41 EEST 2021


Signed-off-by: Gijs Peskens <gijs at peskens.net>
---
 libavformat/librist.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/librist.c b/libavformat/librist.c
index 47c01a8432..987056ccd1 100644
--- a/libavformat/librist.c
+++ b/libavformat/librist.c
@@ -245,6 +245,7 @@ static int librist_open(URLContext *h, const char *uri, int flags)
     if ((flags & AVIO_FLAG_READ_WRITE) == AVIO_FLAG_READ_WRITE)
         return AVERROR(EINVAL);
 
+    s->logging_settings.log_socket = -1;
     ret = rist_logging_set(&logging_settings, s->log_level, log_cb, h, NULL, NULL);
     if (ret < 0)
         return risterr2ret(ret);
-- 
2.30.2



More information about the ffmpeg-devel mailing list