[vlc-devel] [PATCH 2/2] d3d surfaces: pass a NULL video_format_t to picture_Setup()
Steve Lhomme
robux4 at videolabs.io
Wed Jul 12 16:53:37 CEST 2017
---
modules/video_chroma/d3d11_surface.c | 2 +-
modules/video_chroma/dxa9.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/video_chroma/d3d11_surface.c b/modules/video_chroma/d3d11_surface.c
index d8fe4c5993..f8a799a702 100644
--- a/modules/video_chroma/d3d11_surface.c
+++ b/modules/video_chroma/d3d11_surface.c
@@ -724,7 +724,7 @@ static int OpenFromCPU( vlc_object_t *obj )
msg_Err(p_filter, "Failed to map create the temporary picture.");
goto done;
}
- picture_Setup(p_dst, &p_dst->format);
+ picture_Setup(p_dst, NULL);
texDesc.MipLevels = 1;
//texDesc.SampleDesc.Count = 1;
diff --git a/modules/video_chroma/dxa9.c b/modules/video_chroma/dxa9.c
index e15ea86b0b..ab49215d66 100644
--- a/modules/video_chroma/dxa9.c
+++ b/modules/video_chroma/dxa9.c
@@ -399,7 +399,7 @@ static int OpenFromCPU( vlc_object_t *obj )
msg_Err(p_filter, "Failed to map create the temporary picture.");
goto done;
}
- picture_Setup(p_dst, &p_dst->format);
+ picture_Setup(p_dst, NULL);
IDirect3DSurface9_GetDevice(peek->p_sys->surface, &d3ddev);
HRESULT hr = IDirect3DDevice9_CreateOffscreenPlainSurface(d3ddev,
--
2.12.1
More information about the vlc-devel
mailing list