fix(video): try to optimize memory leaks
Some checks failed
build / checks-matrix (push) Has been cancelled
build / codecov (push) Has been cancelled
docs / docs (push) Has been cancelled
build / checks-build (push) Has been cancelled

This commit is contained in:
uttarayan21
2025-12-25 06:28:52 +05:30
parent 5a0bdae84b
commit a2491695b3
5 changed files with 47 additions and 21 deletions

View File

@@ -40,6 +40,11 @@ impl AppSink {
self
}
pub fn with_drop(self, drop: bool) -> Self {
self.inner.set_property("drop", drop);
self
}
pub fn with_caps(self, caps: Caps) -> Self {
self.inner.set_property("caps", caps.inner);
self