dxva2: remove dead code
authorSteve Lhomme <robux4@gmail.com>
Fri, 29 Sep 2017 12:45:25 +0000 (14:45 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 5 Oct 2017 12:33:19 +0000 (14:33 +0200)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/codec/avcodec/dxva2.c

index 6204fd3..c5e829b 100644 (file)
@@ -488,19 +488,6 @@ static int DxCreateVideoService(vlc_va_t *va)
 {
     vlc_va_sys_t *sys = va->sys;
     directx_sys_t *dx_sys = &va->sys->dx_sys;
-
-    HRESULT (WINAPI *CreateVideoService)(IDirect3DDevice9 *,
-                                         REFIID riid,
-                                         void **ppService);
-    CreateVideoService =
-      (void *)GetProcAddress(dx_sys->hdecoder_dll, "DXVA2CreateVideoService");
-
-    if (!CreateVideoService) {
-        msg_Err(va, "cannot load function");
-        return 4;
-    }
-    msg_Info(va, "DXVA2CreateVideoService Success!");
-
     HRESULT hr;
 
     HANDLE device;