Commit 4d2a522c authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

direct3d: fix some logs

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent b6fae848
......@@ -427,7 +427,7 @@ static int Open(vlc_va_t *va, AVCodecContext *ctx, enum PixelFormat pix_fmt,
ID3D11VideoContext *d3dvidctx = NULL;
HRESULT hr = ID3D11DeviceContext_QueryInterface(p_sys->context, &IID_ID3D11VideoContext, (void **)&d3dvidctx);
if (FAILED(hr)) {
msg_Err(va, "Could not Query ID3D11VideoDevice Interface from the picture. (hr=0x%lX)", hr);
msg_Err(va, "Could not Query ID3D11VideoContext Interface from the picture. (hr=0x%lX)", hr);
} else {
ID3D11DeviceContext_GetDevice( p_sys->context, &dx_sys->d3ddev );
HANDLE context_lock = INVALID_HANDLE_VALUE;
......@@ -527,7 +527,7 @@ static int D3dCreateDevice(vlc_va_t *va)
ID3D11VideoContext *d3dvidctx = NULL;
hr = ID3D11DeviceContext_QueryInterface(d3dctx, &IID_ID3D11VideoContext, (void **)&d3dvidctx);
if (FAILED(hr)) {
msg_Err(va, "Could not Query ID3D11VideoDevice Interface. (hr=0x%lX)", hr);
msg_Err(va, "Could not Query ID3D11VideoContext Interface. (hr=0x%lX)", hr);
return VLC_EGENERIC;
}
va->sys->d3dvidctx = d3dvidctx;
......
......@@ -477,12 +477,12 @@ int directx_va_Open(vlc_va_t *va, directx_sys_t *dx_sys,
msg_Dbg(va, "CreateDevice succeed");
if (dx_sys->pf_create_device_manager(va)) {
msg_Err(va, "D3dCreateDeviceManager failed");
msg_Err(va, "CreateDeviceManager failed");
goto error;
}
if (dx_sys->pf_create_video_service(va)) {
msg_Err(va, "DxCreateVideoService failed");
msg_Err(va, "CreateVideoService failed");
goto error;
}
......
......@@ -162,7 +162,7 @@ static int Open(vlc_object_t *obj)
hr = ID3D11DeviceContext_QueryInterface(dst->p_sys->context, &IID_ID3D11VideoContext, (void **)&sys->d3dvidctx);
if (FAILED(hr)) {
msg_Err(filter, "Could not Query ID3D11VideoDevice Interface from the picture. (hr=0x%lX)", hr);
msg_Err(filter, "Could not Query ID3D11VideoContext Interface from the picture. (hr=0x%lX)", hr);
goto error;
}
......
......@@ -849,7 +849,7 @@ error:
pool_cfg.picture_count = 0;
sys->sys.pool = picture_pool_NewExtended( &pool_cfg );
} else {
msg_Dbg(vd, "ID3D11VideoDecoderOutputView succeed with %d surfaces (%dx%d) context 0x%p",
msg_Dbg(vd, "D3D11 pool succeed with %d surfaces (%dx%d) context 0x%p",
picture_count, surface_fmt.i_width, surface_fmt.i_height, sys->d3dcontext);
}
return sys->sys.pool;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment