[FFmpeg-devel] [PATCH 3/3] avutil/hwcontext_d3d11va: add logging to dxgi debug interfaces

Timo Rothenpieler timo at rothenpieler.org
Sun Mar 17 17:11:08 EET 2024


On 14.03.2024 22:26, Timo Rothenpieler wrote:
> ---
>   libavutil/hwcontext_d3d11va.c | 10 +++++++++-
>   1 file changed, 9 insertions(+), 1 deletion(-)
> 
> diff --git a/libavutil/hwcontext_d3d11va.c b/libavutil/hwcontext_d3d11va.c
> index 1b96c38d25..e30c8fc238 100644
> --- a/libavutil/hwcontext_d3d11va.c
> +++ b/libavutil/hwcontext_d3d11va.c
> @@ -685,9 +685,17 @@ static int d3d11va_device_create(AVHWDeviceContext *ctx, const char *device,
>               if (pf_DXGIGetDebugInterface) {
>                   IDXGIDebug *dxgi_debug = NULL;
>                   hr = pf_DXGIGetDebugInterface(&IID_IDXGIDebug, (void**)&dxgi_debug);
> -                if (SUCCEEDED(hr) && dxgi_debug)
> +                if (SUCCEEDED(hr) && dxgi_debug) {
>                       IDXGIDebug_ReportLiveObjects(dxgi_debug, DXGI_DEBUG_ALL, DXGI_DEBUG_RLO_ALL);
> +                    av_log(ctx, AV_LOG_INFO, "Enabled dxgi debugging.\n");
> +                } else {
> +                    av_log(ctx, AV_LOG_WARNING, "Failed enabling dxgi debugging.\n");
> +                }
> +            } else {
> +                av_log(ctx, AV_LOG_WARNING, "Failed getting dxgi debug interface.\n");
>               }
> +        } else {
> +            av_log(ctx, AV_LOG_WARNING, "Failed loading dxgi debug library.\n");
>           }
>       }
>   #endif

will apply series soon if nobody objects


More information about the ffmpeg-devel mailing list