mirror of
https://github.com/BetterCorp/BetterFrame.git
synced 2026-05-26 21:26:33 +00:00
fix: use property_from_str for queue leaky enum
This commit is contained in:
parent
527a62d2e5
commit
30eb85e6b1
1 changed files with 1 additions and 1 deletions
|
|
@ -27,7 +27,7 @@ pub fn create_camera_pipeline(name: &str, rtsp_uri: &str) -> Option<(Pipeline, E
|
||||||
|
|
||||||
let queue = gst::ElementFactory::make("queue")
|
let queue = gst::ElementFactory::make("queue")
|
||||||
.property("max-size-buffers", 1u32)
|
.property("max-size-buffers", 1u32)
|
||||||
.property("leaky", 2u32)
|
.property_from_str("leaky", "downstream")
|
||||||
.build()
|
.build()
|
||||||
.ok()?;
|
.ok()?;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue