diff mbox

[FFmpeg-devel] avcodec/omx: Correct av_log() log message

Message ID DB6PR05MB3352EAB6333C5A6A5F38EC16EBEC0@DB6PR05MB3352.eurprd05.prod.outlook.com
State Accepted
Commit caabe1b4956d054bc3b077ae03a0d4205dbb843e
Headers show

Commit Message

Alejandro Solozabal June 12, 2019, 12:16 p.m. UTC
Print the right library name, which is trying to open, on the log message.

Signed-off-by: Alejandro Solozabal <a.solozabal@hotmail.com>

---
 libavcodec/omx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.11.0

Comments

Mark Thompson June 12, 2019, 10:08 p.m. UTC | #1
On 12/06/2019 13:16, Alejandro Solozabal wrote:
> Print the right library name, which is trying to open, on the log message.
> 
> Signed-off-by: Alejandro Solozabal <a.solozabal@hotmail.com>
> ---
>  libavcodec/omx.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libavcodec/omx.c b/libavcodec/omx.c
> index 466e0be9fe..a1e5a46a54 100644
> --- a/libavcodec/omx.c
> +++ b/libavcodec/omx.c
> @@ -100,7 +100,7 @@ static av_cold int omx_try_load(OMXContext *s, void *logctx,
>      if (libname2) {
>          s->lib2 = dlopen(libname2, RTLD_NOW | RTLD_GLOBAL);
>          if (!s->lib2) {
> -            av_log(logctx, AV_LOG_WARNING, "%s not found\n", libname);
> +            av_log(logctx, AV_LOG_WARNING, "%s not found\n", libname2);
>              return AVERROR_ENCODER_NOT_FOUND;
>          }
>          s->host_init = dlsym(s->lib2, "bcm_host_init");
> 

Yep, applied.

Thanks!

- Mark
diff mbox

Patch

diff --git a/libavcodec/omx.c b/libavcodec/omx.c
index 466e0be9fe..a1e5a46a54 100644
--- a/libavcodec/omx.c
+++ b/libavcodec/omx.c
@@ -100,7 +100,7 @@  static av_cold int omx_try_load(OMXContext *s, void *logctx,
     if (libname2) {
         s->lib2 = dlopen(libname2, RTLD_NOW | RTLD_GLOBAL);
         if (!s->lib2) {
-            av_log(logctx, AV_LOG_WARNING, "%s not found\n", libname);
+            av_log(logctx, AV_LOG_WARNING, "%s not found\n", libname2);
             return AVERROR_ENCODER_NOT_FOUND;
         }
         s->host_init = dlsym(s->lib2, "bcm_host_init");