[vlc-commits] [Git][videolan/vlc][master] d3d11_fmt: don't create an empty external decoder device

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Mon Apr 24 10:06:14 UTC 2023



Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
c94979a7 by Steve Lhomme at 2023-04-24T09:47:15+00:00
d3d11_fmt: don't create an empty external decoder device

If the external code didn't provide proper devices, we should not create a
decoder device. When we have a VLC_DECODER_DEVICE_D3D11VA we should assume
it's a valid one.

- - - - -


1 changed file:

- modules/video_chroma/d3d11_fmt.c


Changes:

=====================================
modules/video_chroma/d3d11_fmt.c
=====================================
@@ -384,7 +384,7 @@ static HRESULT D3D11_CreateDeviceExternal(vlc_object_t *obj, ID3D11DeviceContext
     if (unlikely(d3d11ctx == NULL))
     {
         msg_Err(obj, "missing external ID3D11DeviceContext");
-        return S_FALSE;
+        return E_FAIL;
     }
 
     HRESULT hr;



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/c94979a7e8c47d4e64958e9e417585445c0ccb21

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/c94979a7e8c47d4e64958e9e417585445c0ccb21
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list