Skip to content

nvdec: Do not access nvdec object from destroy function of qdata

The destroy callback can be called just before the fìnalization of GstMiniObject. So the nvdec object might be destroyed already. Instead, store the GstCudaContext with increased ref to safely unregister the CUDA resource.

Merge request reports