summaryrefslogtreecommitdiff
path: root/recipes/gst-plugins-bad-1.0/0001-d3d11videosink-Fix-build-error-on-UWP.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/gst-plugins-bad-1.0/0001-d3d11videosink-Fix-build-error-on-UWP.patch')
-rw-r--r--recipes/gst-plugins-bad-1.0/0001-d3d11videosink-Fix-build-error-on-UWP.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/recipes/gst-plugins-bad-1.0/0001-d3d11videosink-Fix-build-error-on-UWP.patch b/recipes/gst-plugins-bad-1.0/0001-d3d11videosink-Fix-build-error-on-UWP.patch
new file mode 100644
index 00000000..ce1b6298
--- /dev/null
+++ b/recipes/gst-plugins-bad-1.0/0001-d3d11videosink-Fix-build-error-on-UWP.patch
@@ -0,0 +1,28 @@
+From 3f43fef3ce8cfd2f00d99d3a967e29c724fe8f2d Mon Sep 17 00:00:00 2001
+From: Seungha Yang <seungha@centricular.com>
+Date: Mon, 18 Jan 2021 19:23:30 +0900
+Subject: [PATCH] d3d11videosink: Fix build error on UWP
+
+gstd3d11videosink.c(662): error C2065: 'sink': undeclared identifier
+
+Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1961>
+---
+ sys/d3d11/gstd3d11videosink.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/sys/d3d11/gstd3d11videosink.c b/sys/d3d11/gstd3d11videosink.c
+index b4800ea57..6fb74e0bc 100644
+--- a/sys/d3d11/gstd3d11videosink.c
++++ b/sys/d3d11/gstd3d11videosink.c
+@@ -659,7 +659,7 @@ gst_d3d11_video_sink_prepare_window (GstD3D11VideoSink * self)
+ #if GST_D3D11_WINAPI_ONLY_APP
+ if (window_type != GST_D3D11_WINDOW_NATIVE_TYPE_CORE_WINDOW &&
+ window_type != GST_D3D11_WINDOW_NATIVE_TYPE_SWAP_CHAIN_PANEL) {
+- GST_ERROR_OBJECT (sink, "Overlay handle must be set before READY state");
++ GST_ERROR_OBJECT (self, "Overlay handle must be set before READY state");
+ return FALSE;
+ }
+ #endif
+--
+2.17.1
+