d3d11poolallocator: Initialize flush flag with TRUE

If it's not active state, it should return flushing from acquire
method

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4935>
This commit is contained in:
Seungha Yang 2023-06-27 04:26:23 +09:00 committed by GStreamer Marge Bot
parent 43ee082189
commit 9aa1d683a2

View file

@ -1956,7 +1956,7 @@ struct _GstD3D11PoolAllocatorPrivate
std::atomic<guint> outstanding;
guint cur_mems = 0;
gboolean flushing = FALSE;
gboolean flushing = TRUE;
/* Calculated memory size, based on Direct3D11 staging texture map.
* Note that, we cannot know the actually staging texture memory size prior