mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
cudamemory: Fix outstanding memory count tracing
Gets being released memory back to queue even if allocator is flushing in order to count the number of outstanding memory objects. And fixing double count increment Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6240>
This commit is contained in:
parent
05aae3dd02
commit
f77f3e83ed
1 changed files with 0 additions and 6 deletions
|
@ -1675,11 +1675,6 @@ gst_cuda_memory_release (GstMiniObject * object)
|
|||
}
|
||||
|
||||
alloc = GST_CUDA_POOL_ALLOCATOR (mem->allocator);
|
||||
/* if flushing, free this memory */
|
||||
if (GST_CUDA_POOL_ALLOCATOR_IS_FLUSHING (alloc)) {
|
||||
GST_LOG_OBJECT (alloc, "allocator is flushing, free %p", mem);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/* return the memory to the allocator */
|
||||
gst_memory_ref (mem);
|
||||
|
@ -1908,7 +1903,6 @@ gst_cuda_pool_allocator_acquire_memory (GstCudaPoolAllocator * allocator,
|
|||
gst_object_unref (mem->allocator);
|
||||
mem->allocator = (GstAllocator *) gst_object_ref (allocator);
|
||||
GST_MINI_OBJECT_CAST (mem)->dispose = gst_cuda_memory_release;
|
||||
allocator->priv->outstanding++;
|
||||
} else {
|
||||
dec_outstanding (allocator);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue