[vlc-devel] [PATCH] dxva2: log when a new device is detected
Steve Lhomme
robux4 at videolabs.io
Tue Oct 17 14:19:19 CEST 2017
---
modules/codec/avcodec/dxva2.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/modules/codec/avcodec/dxva2.c b/modules/codec/avcodec/dxva2.c
index 1d79c6e3d8..c04cd2d92e 100644
--- a/modules/codec/avcodec/dxva2.c
+++ b/modules/codec/avcodec/dxva2.c
@@ -223,6 +223,7 @@ static int Get(vlc_va_t *va, picture_t *pic, uint8_t **data)
/* Check the device */
HRESULT hr = IDirect3DDeviceManager9_TestDevice(sys->devmng, sys->device);
if (hr == DXVA2_E_NEW_VIDEO_DEVICE) {
+ msg_Warn(va, "New video device.");
if (DxResetVideoDecoder(va))
return VLC_EGENERIC;
} else if (FAILED(hr)) {
--
2.14.2
More information about the vlc-devel
mailing list