summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeungha Yang <seungha@centricular.com>2021-01-18 19:45:06 +0900
committerSeungha Yang <seungha@centricular.com>2021-01-18 20:22:33 +0900
commit3f216d5881ff420665ab6249bb2ccb50309b5ce3 (patch)
tree85de65cf30c06c0ba3311e2a25ae80b4a201a25a
parent7ca79b895fb0768ee52a1de5f9dd386b567c2434 (diff)
gst-plugins-bad-1.0: Fix d3d11 build error on UWP1.18.3
Temporary patch for 1.18.3 release Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/676>
-rw-r--r--recipes/gst-plugins-bad-1.0.recipe2
-rw-r--r--recipes/gst-plugins-bad-1.0/0001-d3d11videosink-Fix-build-error-on-UWP.patch28
2 files changed, 30 insertions, 0 deletions
diff --git a/recipes/gst-plugins-bad-1.0.recipe b/recipes/gst-plugins-bad-1.0.recipe
index 7c00ac10..3133e33d 100644
--- a/recipes/gst-plugins-bad-1.0.recipe
+++ b/recipes/gst-plugins-bad-1.0.recipe
@@ -75,6 +75,8 @@ class Recipe(custom.GStreamer):
'srt', 'libusrsctp', 'zbar']
use_system_libs = True
+ patches = [name + '/0001-d3d11videosink-Fix-build-error-on-UWP.patch']
+
files_lang = ['gst-plugins-bad-1.0']
files_libs = [
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
+