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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/933>
This commit is contained in:
Seungha Yang 2021-09-18 23:37:59 +09:00 committed by GStreamer Marge Bot
parent a12762a29a
commit 0fa5a06ed9

View 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);