Skip to content

Commit

Permalink
do not use container
Browse files Browse the repository at this point in the history
Signed-off-by: Ric Li <ming3.li@intel.com>
  • Loading branch information
ricmli committed Jan 12, 2024
1 parent 168b975 commit 27c85a1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ecosystem.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ jobs:
if: ${{ github.repository == 'OpenVisualCloud/Media-Transport-Library' && needs.changes.outputs.changed == 'true' }}
runs-on: ${{ matrix.os }}
timeout-minutes: 60
container:
image: ubuntu:latest
strategy:
matrix:
os: [ubuntu-latest]
Expand Down Expand Up @@ -89,6 +87,7 @@ jobs:
run: |
cd rust/
cargo build --verbose
cargo clippy
cd imtl-sys
cargo build --verbose
cargo test --verbose
2 changes: 1 addition & 1 deletion rust/src/imtl/mtl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ impl Mtl {
let mut c_param = unsafe { c_param.assume_init() };

let handle = unsafe { sys::mtl_init(&mut c_param as *mut _) };
if handle == std::ptr::null_mut() {
if handle.is_null() {
bail!("Failed to initialize MTL")
} else {
self.handle = Some(handle);
Expand Down
4 changes: 2 additions & 2 deletions rust/src/imtl/video.rs
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ impl VideoTx {
let mut ops = unsafe { ops.assume_init() };

let handle = unsafe { sys::st20_tx_create(mtl.handle().unwrap(), &mut ops as *mut _) };
if handle == std::ptr::null_mut() {
if handle.is_null() {
bail!("Failed to initialize MTL")
} else {
self.handle = Some(handle);
Expand Down Expand Up @@ -495,7 +495,7 @@ impl VideoRx {
let mut ops = unsafe { ops.assume_init() };

let handle = unsafe { sys::st20_rx_create(mtl.handle().unwrap(), &mut ops as *mut _) };
if handle == std::ptr::null_mut() {
if handle.is_null() {
bail!("Failed to initialize MTL")
} else {
self.handle = Some(handle);
Expand Down

0 comments on commit 27c85a1

Please sign in to comment.