diff mbox

[FFmpeg-devel,1/2] lavu/qsv: add log message for libmfx version

Message ID 1514453253-4480-1-git-send-email-zhong.li@intel.com
State Accepted
Commit e23190269fb6e8217d080918893641ba3e0e3556
Headers show

Commit Message

Zhong Li Dec. 28, 2017, 9:27 a.m. UTC
It is benefit to diagnose issues related to different libmfx version.

Signed-off-by: Zhong Li <zhong.li@intel.com>
---
 libavutil/hwcontext_qsv.c | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Derek Buitenhuis Dec. 28, 2017, 4:09 p.m. UTC | #1
On 12/28/2017 9:27 AM, Zhong Li wrote:
> +    av_log(ctx, AV_LOG_VERBOSE,
> +           "Initialize MFX session: API version is %d.%d, implementation version is %d.%d\n",
> +           MFX_VERSION_MAJOR, MFX_VERSION_MINOR, ver.Major, ver.Minor);

Maybe AV_LOG_DEBUG?

I have no strong opinion, though.

- Derek
diff mbox

Patch

diff --git a/libavutil/hwcontext_qsv.c b/libavutil/hwcontext_qsv.c
index 9b6040b..6228c04 100644
--- a/libavutil/hwcontext_qsv.c
+++ b/libavutil/hwcontext_qsv.c
@@ -1035,6 +1035,10 @@  static int qsv_device_derive_from_child(AVHWDeviceContext *ctx,
         goto fail;
     }
 
+    av_log(ctx, AV_LOG_VERBOSE,
+           "Initialize MFX session: API version is %d.%d, implementation version is %d.%d\n",
+           MFX_VERSION_MAJOR, MFX_VERSION_MINOR, ver.Major, ver.Minor);
+
     MFXClose(hwctx->session);
 
     err = MFXInit(implementation, &ver, &hwctx->session);