mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-25 00:32:31 +00:00
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:
parent
daef8cbff7
commit
9b15f43cf8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user