From c760e8a82a6f9bb471f4e48646323f1e856badad Mon Sep 17 00:00:00 2001 From: epingel2 <45807790+epingel2@users.noreply.github.com> Date: Wed, 29 Jun 2022 10:51:08 -0600 Subject: [PATCH] Removes the relinquish and xrm destroy drop commands from the decoder, encoder, and scaler (#98) --- xilinx/src/xlnx_dec_utils.rs | 4 ---- xilinx/src/xlnx_enc_utils.rs | 4 ---- xilinx/src/xlnx_scal_utils.rs | 4 ---- 3 files changed, 12 deletions(-) diff --git a/xilinx/src/xlnx_dec_utils.rs b/xilinx/src/xlnx_dec_utils.rs index 4b510bfd..ca0b6b3f 100644 --- a/xilinx/src/xlnx_dec_utils.rs +++ b/xilinx/src/xlnx_dec_utils.rs @@ -233,10 +233,6 @@ impl Drop for XlnxDecoderXrmCtx { if self.decode_res_in_use { xrmCuListRelease(self.xrm_ctx, &mut self.cu_list_res); } - if self.xrm_reserve_id != 0 { - xrmCuPoolRelinquish(self.xrm_ctx, self.xrm_reserve_id); - } - xrmDestroyContext(self.xrm_ctx); } } } diff --git a/xilinx/src/xlnx_enc_utils.rs b/xilinx/src/xlnx_enc_utils.rs index 1cef85c3..2b3cc060 100644 --- a/xilinx/src/xlnx_enc_utils.rs +++ b/xilinx/src/xlnx_enc_utils.rs @@ -228,10 +228,6 @@ impl Drop for XlnxEncoderXrmCtx { if self.encode_res_in_use { xrmCuListRelease(self.xrm_ctx, &mut self.cu_list_res); } - if self.xrm_reserve_id != 0 { - xrmCuPoolRelinquish(self.xrm_ctx, self.xrm_reserve_id); - } - xrmDestroyContext(self.xrm_ctx); } } } diff --git a/xilinx/src/xlnx_scal_utils.rs b/xilinx/src/xlnx_scal_utils.rs index 30a7df55..41c642cf 100644 --- a/xilinx/src/xlnx_scal_utils.rs +++ b/xilinx/src/xlnx_scal_utils.rs @@ -154,10 +154,6 @@ impl Drop for XlnxScalerXrmCtx { if self.scal_res_in_use { xrmCuRelease(self.xrm_ctx, &mut self.cu_res); } - if self.xrm_reserve_id != 0 { - xrmCuPoolRelinquish(self.xrm_ctx, self.xrm_reserve_id); - } - xrmDestroyContext(self.xrm_ctx); } } }