From 0a454191c0a7a3e7f3e33a0762e15503339d036f Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Tue, 29 Sep 2020 18:52:43 +0900 Subject: [PATCH] d3d11upload: Allow passthrough for system memory ... like how d3d11download and gl{upload,download} do. This should've been part of the commit 9b72b04daddafb1c86cb6ab5923c593a70bc4166 but I missed. Part-of: --- sys/d3d11/gstd3d11upload.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sys/d3d11/gstd3d11upload.c b/sys/d3d11/gstd3d11upload.c index 42d0caaae0..17e05ffc39 100644 --- a/sys/d3d11/gstd3d11upload.c +++ b/sys/d3d11/gstd3d11upload.c @@ -55,7 +55,13 @@ static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src", GST_VIDEO_CAPS_MAKE_WITH_FEATURES (GST_CAPS_FEATURE_MEMORY_D3D11_MEMORY "," GST_CAPS_FEATURE_META_GST_VIDEO_OVERLAY_COMPOSITION, - GST_D3D11_ALL_FORMATS))); + GST_D3D11_ALL_FORMATS) ";" + GST_VIDEO_CAPS_MAKE (GST_D3D11_ALL_FORMATS) "; " + GST_VIDEO_CAPS_MAKE_WITH_FEATURES + (GST_CAPS_FEATURE_MEMORY_SYSTEM_MEMORY "," + GST_CAPS_FEATURE_META_GST_VIDEO_OVERLAY_COMPOSITION, + GST_D3D11_ALL_FORMATS)) + ); struct _GstD3D11Upload { -- 2.34.1