diff options
author | Matthew Waters <matthew@centricular.com> | 2020-05-29 22:17:24 +1000 |
---|---|---|
committer | Matthew Waters <matthew@centricular.com> | 2020-06-02 13:58:13 +1000 |
commit | dd44bc3a2dd4e380eb8afbb591d68706950ebe70 (patch) | |
tree | 8d1fe03fba673ebea14d6168337ff2825e8f90a4 /gst-libs/gst/vulkan | |
parent | bafdade2075a70037b398c6433c14ca0db5ed4b2 (diff) | |
download | gstreamer-plugins-bad-dd44bc3a2dd4e380eb8afbb591d68706950ebe70.tar.gz |
vkimagememory: actually check the length of a ptr array
Not it's value is > 0 which should always be true.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1314>
Diffstat (limited to 'gst-libs/gst/vulkan')
-rw-r--r-- | gst-libs/gst/vulkan/gstvkimagememory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst-libs/gst/vulkan/gstvkimagememory.c b/gst-libs/gst/vulkan/gstvkimagememory.c index b47c480be..711df1ca8 100644 --- a/gst-libs/gst/vulkan/gstvkimagememory.c +++ b/gst-libs/gst/vulkan/gstvkimagememory.c @@ -414,7 +414,7 @@ _vk_image_mem_free (GstAllocator * allocator, GstMemory * memory) GST_CAT_TRACE (GST_CAT_VULKAN_IMAGE_MEMORY, "freeing image memory:%p " "id:%" G_GUINT64_FORMAT, mem, (guint64) mem->image); - g_warn_if_fail (mem->outstanding_views > 0); + g_warn_if_fail (mem->outstanding_views->len == 0); g_ptr_array_unref (mem->outstanding_views); g_ptr_array_foreach (mem->views, (GFunc) _free_view, NULL); |