diff mbox

[FFmpeg-devel,v1,14/14] avfilter/vf_pad: add logging context to log

Message ID 20190930071751.5919-14-lq@chinaffmpeg.org
State Accepted
Commit 985ed65117c7c82255bb0931442725aa6e5f6967
Headers show

Commit Message

Liu Steven Sept. 30, 2019, 7:17 a.m. UTC
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
---
 libavfilter/vf_pad.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Paul B Mahol Sept. 30, 2019, 7:25 a.m. UTC | #1
lgtm

On 9/30/19, Steven Liu <lq@chinaffmpeg.org> wrote:
> Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
> ---
>  libavfilter/vf_pad.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libavfilter/vf_pad.c b/libavfilter/vf_pad.c
> index ed155578e1..186d3f028d 100644
> --- a/libavfilter/vf_pad.c
> +++ b/libavfilter/vf_pad.c
> @@ -210,7 +210,7 @@ static int config_input(AVFilterLink *inlink)
>      return 0;
>
>  eval_fail:
> -    av_log(NULL, AV_LOG_ERROR,
> +    av_log(ctx, AV_LOG_ERROR,
>             "Error when evaluating the expression '%s'\n", expr);
>      return ret;
>
> --
> 2.15.1
>
>
>
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
diff mbox

Patch

diff --git a/libavfilter/vf_pad.c b/libavfilter/vf_pad.c
index ed155578e1..186d3f028d 100644
--- a/libavfilter/vf_pad.c
+++ b/libavfilter/vf_pad.c
@@ -210,7 +210,7 @@  static int config_input(AVFilterLink *inlink)
     return 0;
 
 eval_fail:
-    av_log(NULL, AV_LOG_ERROR,
+    av_log(ctx, AV_LOG_ERROR,
            "Error when evaluating the expression '%s'\n", expr);
     return ret;