History

avutil/hwcontext_qsv: fix format specifier for HRESULT

Kacper Michajłow committed 1 year ago

Commit ff521471 parent 1a9924d1 file · +10 −10Browse files

Unified · Split

libavutil/hwcontext_qsv.c+10−10
@@ -845,18 +845,18 @@ static int qsv_d3d11_update_config(void *ctx, mfxHDL handle, mfxConfig cfg) · 844 unmodified lines
845845 if (SUCCEEDED(hr)) {
846846 hr = IDXGIDevice_GetAdapter(pDXGIDevice, &pDXGIAdapter);
847847 if (FAILED(hr)) {
848− av_log(ctx, AV_LOG_ERROR, "Error IDXGIDevice_GetAdapter %d\n", hr);
848+ av_log(ctx, AV_LOG_ERROR, "Error IDXGIDevice_GetAdapter %#lx\n", hr);
849849 IDXGIDevice_Release(pDXGIDevice);
850850 return ret;
851851 }
852852
853853 hr = IDXGIAdapter_GetDesc(pDXGIAdapter, &adapterDesc);
854854 if (FAILED(hr)) {
855− av_log(ctx, AV_LOG_ERROR, "Error IDXGIAdapter_GetDesc %d\n", hr);
855+ av_log(ctx, AV_LOG_ERROR, "Error IDXGIAdapter_GetDesc %#lx\n", hr);
856856 goto fail;
857857 }
858858 } else {
859− av_log(ctx, AV_LOG_ERROR, "Error ID3D11Device_QueryInterface %d\n", hr);
859+ av_log(ctx, AV_LOG_ERROR, "Error ID3D11Device_QueryInterface %#lx\n", hr);
860860 return ret;
861861 }
862862
@@ -917,47 +917,47 @@ static int qsv_d3d9_update_config(void *ctx, mfxHDL handle, mfxConfig cfg) · 54 unmodified lines
917917
918918 hr = IDirect3DDeviceManager9_OpenDeviceHandle(devmgr, &device_handle);
919919 if (FAILED(hr)) {
920− av_log(ctx, AV_LOG_ERROR, "Error OpenDeviceHandle %d\n", hr);
920+ av_log(ctx, AV_LOG_ERROR, "Error OpenDeviceHandle %#lx\n", hr);
921921 goto fail;
922922 }
923923
924924 hr = IDirect3DDeviceManager9_LockDevice(devmgr, device_handle, &device, TRUE);
925925 if (FAILED(hr)) {
926− av_log(ctx, AV_LOG_ERROR, "Error LockDevice %d\n", hr);
926+ av_log(ctx, AV_LOG_ERROR, "Error LockDevice %#lx\n", hr);
927927 IDirect3DDeviceManager9_CloseDeviceHandle(devmgr, device_handle);
928928 goto fail;
929929 }
930930 hr = IDirect3DDevice9_QueryInterface(device, &IID_IDirect3DDevice9Ex, (void **)&device_ex);
931931 IDirect3DDevice9_Release(device);
932932 if (FAILED(hr)) {
933− av_log(ctx, AV_LOG_ERROR, "Error IDirect3DDevice9_QueryInterface %d\n", hr);
933+ av_log(ctx, AV_LOG_ERROR, "Error IDirect3DDevice9_QueryInterface %#lx\n", hr);
934934 goto unlock;
935935 }
936936
937937 hr = IDirect3DDevice9Ex_GetCreationParameters(device_ex, &params);
938938 if (FAILED(hr)) {
939− av_log(ctx, AV_LOG_ERROR, "Error IDirect3DDevice9_GetCreationParameters %d\n", hr);
939+ av_log(ctx, AV_LOG_ERROR, "Error IDirect3DDevice9_GetCreationParameters %#lx\n", hr);
940940 IDirect3DDevice9Ex_Release(device_ex);
941941 goto unlock;
942942 }
943943
944944 hr = IDirect3DDevice9Ex_GetDirect3D(device_ex, &d3d9);
945945 if (FAILED(hr)) {
946− av_log(ctx, AV_LOG_ERROR, "Error IDirect3DDevice9Ex_GetDirect3D %d\n", hr);
946+ av_log(ctx, AV_LOG_ERROR, "Error IDirect3DDevice9Ex_GetDirect3D %#lx\n", hr);
947947 IDirect3DDevice9Ex_Release(device_ex);
948948 goto unlock;
949949 }
950950 hr = IDirect3D9_QueryInterface(d3d9, &IID_IDirect3D9Ex, (void **)&d3d9ex);
951951 IDirect3D9_Release(d3d9);
952952 if (FAILED(hr)) {
953− av_log(ctx, AV_LOG_ERROR, "Error IDirect3D9_QueryInterface3D %d\n", hr);
953+ av_log(ctx, AV_LOG_ERROR, "Error IDirect3D9_QueryInterface3D %#lx\n", hr);
954954 IDirect3DDevice9Ex_Release(device_ex);
955955 goto unlock;
956956 }
957957
958958 hr = IDirect3D9Ex_GetAdapterLUID(d3d9ex, params.AdapterOrdinal, &luid);
959959 if (FAILED(hr)) {
960− av_log(ctx, AV_LOG_ERROR, "Error IDirect3DDevice9Ex_GetAdapterLUID %d\n", hr);
960+ av_log(ctx, AV_LOG_ERROR, "Error IDirect3DDevice9Ex_GetAdapterLUID %#lx\n", hr);
961961 goto release;
962962 }
963963

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t