From 7ffa4cf5eb37cd2a1be3a441fdab611abfb7206f Mon Sep 17 00:00:00 2001 From: benshi <807629978@qq.com> Date: Fri, 3 Jan 2025 06:20:11 +0000 Subject: [PATCH] fix some error --- .github/workflows/rust.yml | 2 +- .gitignore | 2 ++ rszlm-sys/build.rs | 4 +++- src/player.rs | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 96b019a..79efe50 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -16,6 +16,6 @@ jobs: steps: - uses: actions/checkout@v4 - name: install dependencies - run: sudo apt install -y clang libavcodec-dev libavformat-dev libavutil-dev pkg-config + run: sudo apt install -y clang libavcodec-dev libavformat-dev libavutil-dev pkg-config libsrtp2 - name: Build run: cargo build -vv diff --git a/.gitignore b/.gitignore index 196e176..ab64ff5 100644 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,5 @@ Cargo.lock # Added by cargo /target + +.cargo/config.toml \ No newline at end of file diff --git a/rszlm-sys/build.rs b/rszlm-sys/build.rs index f9ba17d..e5408e6 100644 --- a/rszlm-sys/build.rs +++ b/rszlm-sys/build.rs @@ -241,7 +241,9 @@ fn find_libsrtp2() { .statik(is_static()) .probe("libsrtp2") { - println!("find libsrtp2 from pkg_config"); + println!( + "find libsrtp2 from pkg_config, if you want to use webrtc, please install libsrtp2" + ); } else { build_srtp(); // check srtp build result diff --git a/src/player.rs b/src/player.rs index e8c0893..5c48f88 100644 --- a/src/player.rs +++ b/src/player.rs @@ -2,7 +2,7 @@ use std::collections::HashMap; use rszlm_sys::*; -use crate::{box_to_mut_void_ptr, const_ptr_to_string, const_str_to_ptr}; +use crate::{box_to_mut_void_ptr, const_ptr_to_string, const_str_to_ptr, init::EnvIni}; pub struct ProxyPlayer(mk_proxy_player);