Skip to content

Commit

Permalink
Removes the relinquish and xrm destroy drop commands from the decoder…
Browse files Browse the repository at this point in the history
…, encoder, and scaler (#98)
  • Loading branch information
epingel2 authored Jun 29, 2022
1 parent 828fb84 commit c760e8a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
4 changes: 0 additions & 4 deletions xilinx/src/xlnx_dec_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
4 changes: 0 additions & 4 deletions xilinx/src/xlnx_enc_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
4 changes: 0 additions & 4 deletions xilinx/src/xlnx_scal_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}

0 comments on commit c760e8a

Please sign in to comment.