examples: Update gstreamer

This commit is contained in:
Ian Douglas Scott 2025-05-08 12:36:10 -07:00 • committed by Ashley Wulber
parent e702c43f71
commit 5865264964
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820
2 changed files with 6 additions and 6 deletions

View file

@ -68,7 +68,7 @@ fn pipewire_thread(
) {
gst::init().unwrap();
let pipeline = gst::parse_launch(&format!(
let pipeline = gst::parse::launch(&format!(
"filesrc name=filesrc !
qtdemux !
h264parse !
@ -126,7 +126,7 @@ fn pipewire_thread(
let planes = (0..meta.n_planes())
.map(|plane_idx| {
let memory = buffer
.memory(plane_idx)
.memory(plane_idx as usize)
.unwrap()
.downcast_memory::<gst_allocators::DmaBufMemory>()
.unwrap();