Fix double stop in ANSVideoPlayer
This commit is contained in:
@@ -1167,7 +1167,12 @@ trt_cache_create_context:
|
||||
|
||||
// -- Pinned output buffers (CUDA graph prerequisite) -----------------------
|
||||
// Invalidate any graphs captured by a previous loadNetwork() call on this instance.
|
||||
for (auto& [bs, ge] : m_graphExecs) { if (ge) cudaGraphExecDestroy(ge); }
|
||||
for (auto& [bs, ge] : m_graphExecs) {
|
||||
if (ge) {
|
||||
cudaGraphExecDestroy(ge);
|
||||
m_trtGraphDestroys.fetch_add(1, std::memory_order_relaxed);
|
||||
}
|
||||
}
|
||||
m_graphExecs.clear();
|
||||
// Free any previously allocated pinned buffers.
|
||||
for (T* p : m_pinnedOutputBuffers) { if (p) cudaFreeHost(p); }
|
||||
|
||||
Reference in New Issue
Block a user