From 358e62601ee36db12a01e549f527e2aa363654b1 Mon Sep 17 00:00:00 2001 From: QuantumEntangledAndy Date: Thu, 11 Apr 2024 14:03:27 +0700 Subject: [PATCH] Changes to buffer max sizes --- src/main.rs | 2 +- src/rtsp/stream.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index fc0d5a8..f84f4f8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -20,7 +20,7 @@ //! You should have received a copy of the GNU General Public License along with this program. If //! not, see . //! -//! Neolink source code is available online at +//! Neolink source code is available online at //! #[cfg(not(target_env = "msvc"))] use tikv_jemallocator::Jemalloc; diff --git a/src/rtsp/stream.rs b/src/rtsp/stream.rs index 8ebe9d7..2dbd93f 100644 --- a/src/rtsp/stream.rs +++ b/src/rtsp/stream.rs @@ -775,7 +775,7 @@ async fn send_to_appsrc> + Unpin>( log::info!("new pool: {}", size); let pool = gstreamer::BufferPool::new(); let mut pool_config = pool.config(); - pool_config.set_params(None, (*size) as u32, 1, 8); + pool_config.set_params(None, (*size) as u32, 8, 32); pool.set_config(pool_config).unwrap(); // let (allocator, alloc_parms) = pool.allocator().unwrap(); pool.set_active(true).unwrap();