[vlc-commits] d3d11_player: the shared texture needs to be writable by libvlc
Steve Lhomme
git at videolan.org
Mon Oct 14 09:08:21 CEST 2019
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Oct 14 09:00:23 2019 +0200| [0ce3ee9cecbf9e133b816cc254ad94afac202a97] | committer: Steve Lhomme
d3d11_player: the shared texture needs to be writable by libvlc
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0ce3ee9cecbf9e133b816cc254ad94afac202a97
---
doc/libvlc/d3d11_player.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/doc/libvlc/d3d11_player.cpp b/doc/libvlc/d3d11_player.cpp
index ce9de70467..1ab150e530 100644
--- a/doc/libvlc/d3d11_player.cpp
+++ b/doc/libvlc/d3d11_player.cpp
@@ -113,7 +113,7 @@ static bool UpdateOutput_cb( void *opaque, const libvlc_video_direct3d_cfg_t *cf
IDXGIResource1* sharedResource = NULL;
ctx->texture->QueryInterface(__uuidof(IDXGIResource1), (LPVOID*) &sharedResource);
- hr = sharedResource->CreateSharedHandle(NULL, DXGI_SHARED_RESOURCE_READ, NULL, &ctx->sharedHandled);
+ hr = sharedResource->CreateSharedHandle(NULL, DXGI_SHARED_RESOURCE_READ|DXGI_SHARED_RESOURCE_WRITE, NULL, &ctx->sharedHandled);
sharedResource->Release();
ID3D11Device1* d3d11VLC1;
More information about the vlc-commits
mailing list