Skip to content

armgit / Kooha

Public Imported from GitHub
0

Elegantly record your screen

fix(pipeline): fix incorrect duration when recording

Dave Patrick Caberto7e940a9b6e3a
diff --git a/src/pipeline.rs b/src/pipeline.rs
index 44ba415..fd42490 100644
--- a/src/pipeline.rs
+++ b/src/pipeline.rs
@@ -169,6 +169,7 @@ fn make_pipewiresrc(fd: RawFd, path: &str) -> Result<gst::Element> {
.property("fd", fd)
.property("path", path)
.property("do-timestamp", true)
+ .property("provide-clock", false)
.property("keepalive-time", 1000)
.property("resend-last", true)
.build()?;
@@ -330,6 +331,7 @@ fn make_pulsesrc(class: DeviceClass, element_name: &str) -> Result<gst::Element>
let pulsesrc = gst::ElementFactory::make("pulsesrc")
.name(element_name)
.property("provide-clock", false)
+ .property("do-timestamp", true)
.build()?;
match class {