avformat/librist: correctly initialize logging_settings

Correct solution as suggested by Marton Balint on ffmpeg-devel

Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
Gijs Peskens 2021-11-17 15:19:28 +01:00 committed by Marton Balint
parent daef8cbff7
commit 9b15f43cf8

View File

@ -130,6 +130,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 = (struct rist_logging_settings)LOGGING_SETTINGS_INITIALIZER;
ret = rist_logging_set(&logging_settings, s->log_level, log_cb, h, NULL, NULL);
if (ret < 0)
return risterr2ret(ret);