feat: Added PipelineExt trait for all Children of Pipelines
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-23 01:33:54 +05:30
parent 8d46bd2b85
commit 3382aebb1f
6 changed files with 93 additions and 136 deletions

View File

@@ -23,7 +23,6 @@ impl AppSink {
}
pub fn with_caps(mut self, caps: Caps) -> Self {
use gstreamer::prelude::*;
self.inner.set_property("caps", caps.inner);
self
}
@@ -34,7 +33,6 @@ impl AppSink {
}
pub fn pull_sample(&self) -> Result<Sample> {
use gstreamer::prelude::*;
self.appsink()
.pull_sample()
.change_context(Error)
@@ -45,7 +43,6 @@ impl AppSink {
&self,
timeout: impl Into<Option<core::time::Duration>>,
) -> Result<Option<Sample>> {
use gstreamer::prelude::*;
Ok(self
.appsink()
.try_pull_sample(duration_to_clocktime(timeout)?)
@@ -53,7 +50,6 @@ impl AppSink {
}
pub fn pull_preroll(&self) -> Result<Sample> {
use gstreamer::prelude::*;
self.appsink()
.pull_preroll()
.change_context(Error)
@@ -65,7 +61,6 @@ impl AppSink {
&self,
timeout: impl Into<Option<core::time::Duration>>,
) -> Result<Option<Sample>> {
use gstreamer::prelude::*;
Ok(self
.appsink()
.try_pull_preroll(duration_to_clocktime(timeout)?)