From 0fa5a06ed9279bd8b344c5f3f4441b3e8cf6cd05 Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Sat, 18 Sep 2021 23:37:59 +0900 Subject: [PATCH] d3d11videosink: Perform propose_allocation() even when we have no configured window In order to support d3d11 device update, d3d11videosink will configure window on the first buffer. So, there might not be configured window when propose_allocation() is required. Part-of: --- subprojects/gst-plugins-bad/sys/d3d11/gstd3d11videosink.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11videosink.cpp b/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11videosink.cpp index 9cc9c1a332..274b6b1a7d 100644 --- a/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11videosink.cpp +++ b/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11videosink.cpp @@ -837,7 +837,7 @@ gst_d3d11_video_sink_propose_allocation (GstBaseSink * sink, GstQuery * query) guint size; gboolean need_pool; - if (!self->device || !self->window) + if (!self->device) return FALSE; gst_query_parse_allocation (query, &caps, &need_pool);