Changes to buffer max sizes

This commit is contained in:
QuantumEntangledAndy committed 2024-04-11 14:03:27 +07:00
1 parent 7f8ccc6806
commit 358e62601e
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -20,7 +20,7 @@
//! You should have received a copy of the GNU General Public License along with this program. If
//! not, see <https://www.gnu.org/licenses/>.
//!
//! Neolink source code is available online at <https://github.com/thirtythreeforty/neolink>
//! Neolink source code is available online at <https://github.com/QuantumEntangledAndy/neolink>
//!
#[cfg(not(target_env = "msvc"))]
use tikv_jemallocator::Jemalloc;
+1 -1
View File
@@ -775,7 +775,7 @@ async fn send_to_appsrc<E, T: Stream<Item = Result<StampedData, E>> + 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();