feat: Added PipelineExt trait for all Children of Pipelines
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
#[derive(Debug, Clone)]
|
||||
#[repr(transparent)]
|
||||
pub struct Bus {
|
||||
pub(crate) bus: gstreamer::Bus,
|
||||
}
|
||||
use crate::priv_prelude::*;
|
||||
|
||||
wrap_gst!(Bus);
|
||||
|
||||
impl Bus {
|
||||
pub fn iter_timed(
|
||||
@@ -13,14 +11,10 @@ impl Bus {
|
||||
Some(dur) => gstreamer::ClockTime::try_from(dur).ok(),
|
||||
None => gstreamer::ClockTime::NONE,
|
||||
};
|
||||
self.bus.iter_timed(clocktime)
|
||||
self.inner.iter_timed(clocktime)
|
||||
}
|
||||
|
||||
pub fn stream(&self) -> gstreamer::bus::BusStream {
|
||||
self.bus.stream()
|
||||
}
|
||||
|
||||
pub fn into_inner(self) -> gstreamer::Bus {
|
||||
self.bus
|
||||
self.inner.stream()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user