diff mbox series

[FFmpeg-devel,1/2] libRIST: Correctly initialize logging_settings

Message ID 20211117141929.1164334-1-gijs@peskens.net
State Accepted
Commit 9b15f43cf8c7976fba115da686a990377f7b5ab9
Headers show
Series [FFmpeg-devel,1/2] libRIST: Correctly initialize logging_settings
Related show

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/make_ppc success Make finished
andriy/make_fate_ppc success Make fate finished

Commit Message

Gijs Peskens Nov. 17, 2021, 2:19 p.m. UTC
Correct solution as suggested by Martin Balint on ffmpeg-devel
---
 libavformat/librist.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Marton Balint Nov. 18, 2021, 7:19 p.m. UTC | #1
On Wed, 17 Nov 2021, Gijs Peskens wrote:

> Correct solution as suggested by Martin Balint on ffmpeg-devel
> ---
> libavformat/librist.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/libavformat/librist.c b/libavformat/librist.c
> index 6eae90cc2f..378b635ea7 100644
> --- a/libavformat/librist.c
> +++ b/libavformat/librist.c
> @@ -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);
> -- 
> 2.32.0

Thanks, will apply.

Regards,
Marton
diff mbox series

Patch

diff --git a/libavformat/librist.c b/libavformat/librist.c
index 6eae90cc2f..378b635ea7 100644
--- a/libavformat/librist.c
+++ b/libavformat/librist.c
@@ -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);