mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-27 04:35:34 +08:00
[fix] fix nvcodec crash due to cuda context not being released
This commit is contained in:
@@ -22,6 +22,8 @@ class NvidiaVideoDecoder : public VideoDecoder {
|
||||
private:
|
||||
std::shared_ptr<SystemClock> clock_ = nullptr;
|
||||
NvDecoder* decoder = nullptr;
|
||||
CUcontext cuda_context_ = NULL;
|
||||
CUdevice cuda_device_ = 0;
|
||||
bool get_first_keyframe_ = false;
|
||||
bool skip_frame_ = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user