feat: Added PipelineExt trait for all Children of Pipelines
This commit is contained in:
@@ -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)?)
|
||||
|
||||
Reference in New Issue
Block a user