mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2025-09-03 02:13:49 +00:00
streamproducer: Add getter for the stream producer to the consumption link
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1720>
This commit is contained in:
parent
f552a490b7
commit
bf82f54945
1 changed files with 5 additions and 0 deletions
|
@ -202,6 +202,11 @@ impl ConsumptionLink {
|
||||||
pub fn appsrc(&self) -> &gst_app::AppSrc {
|
pub fn appsrc(&self) -> &gst_app::AppSrc {
|
||||||
&self.consumer
|
&self.consumer
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Get the `StreamProducer` currently by this link, if any.
|
||||||
|
pub fn stream_producer(&self) -> Option<&StreamProducer> {
|
||||||
|
self.producer.as_ref()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Drop for ConsumptionLink {
|
impl Drop for ConsumptionLink {
|
||||||
|
|
Loading…
Reference in a new issue