[vlc-commits] dxva2: log when a new device is detected

Steve Lhomme git at videolan.org
Tue Oct 17 18:28:09 CEST 2017


vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Tue Oct 17 14:19:19 2017 +0200| [c05c55f8a39fc54b8cb06a5de70afd7dda586fe5] | committer: Jean-Baptiste Kempf

dxva2: log when a new device is detected

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c05c55f8a39fc54b8cb06a5de70afd7dda586fe5
---

 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..92c5a45d68 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 detected.");
         if (DxResetVideoDecoder(va))
             return VLC_EGENERIC;
     } else if (FAILED(hr)) {



More information about the vlc-commits mailing list