d3d11videosink: Perform propose_allocation() even when we have no configured window
authorSeungha Yang <seungha@centricular.com>
Sat, 18 Sep 2021 14:37:59 +0000 (23:37 +0900)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 27 Sep 2021 16:29:09 +0000 (16:29 +0000)
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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/933>

subprojects/gst-plugins-bad/sys/d3d11/gstd3d11videosink.cpp

index 9cc9c1a..274b6b1 100644 (file)
@@ -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);