diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2022-10-02 11:44:34 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2022-10-02 11:44:34 +0300 |
commit | f66aafb03915c708e2e6f773444914b5108b9971 (patch) | |
tree | 8b8e3f90e26a17770d2c284041b7925685e4b452 /utils | |
parent | 8601562efe444902ff8ed2b09c2a386282662bdb (diff) |
tracers: queue-levels: Update for `gst::TracerImpl` API changes
Diffstat (limited to 'utils')
-rw-r--r-- | utils/tracers/src/queue_levels/imp.rs | 30 |
1 files changed, 25 insertions, 5 deletions
diff --git a/utils/tracers/src/queue_levels/imp.rs b/utils/tracers/src/queue_levels/imp.rs index 681d6d57b..9004f569f 100644 --- a/utils/tracers/src/queue_levels/imp.rs +++ b/utils/tracers/src/queue_levels/imp.rs @@ -334,7 +334,12 @@ impl TracerImpl for QueueLevels { } #[cfg(not(feature = "v1_22"))] - fn pad_push_post(&self, ts: u64, pad: &gst::Pad, _result: gst::FlowReturn) { + fn pad_push_post( + &self, + ts: u64, + pad: &gst::Pad, + _result: Result<gst::FlowSuccess, gst::FlowError>, + ) { if let Some(peer) = pad.peer() { if let Some(parent) = peer .parent() @@ -348,7 +353,12 @@ impl TracerImpl for QueueLevels { } #[cfg(not(feature = "v1_22"))] - fn pad_push_list_post(&self, ts: u64, pad: &gst::Pad, _result: gst::FlowReturn) { + fn pad_push_list_post( + &self, + ts: u64, + pad: &gst::Pad, + _result: Result<gst::FlowSuccess, gst::FlowError>, + ) { if let Some(peer) = pad.peer() { if let Some(parent) = peer .parent() @@ -362,7 +372,12 @@ impl TracerImpl for QueueLevels { } #[cfg(feature = "v1_22")] - fn pad_chain_post(&self, ts: u64, pad: &gst::Pad, _result: gst::FlowReturn) { + fn pad_chain_post( + &self, + ts: u64, + pad: &gst::Pad, + _result: Result<gst::FlowSuccess, gst::FlowError>, + ) { if let Some(parent) = pad.parent().and_then(|p| p.downcast::<gst::Element>().ok()) { if is_queue_type(parent.type_()) { self.log(&parent, Some(pad), ts); @@ -371,7 +386,12 @@ impl TracerImpl for QueueLevels { } #[cfg(feature = "v1_22")] - fn pad_chain_list_post(&self, ts: u64, pad: &gst::Pad, _result: gst::FlowReturn) { + fn pad_chain_list_post( + &self, + ts: u64, + pad: &gst::Pad, + _result: Result<gst::FlowSuccess, gst::FlowError>, + ) { if let Some(parent) = pad.parent().and_then(|p| p.downcast::<gst::Element>().ok()) { if is_queue_type(parent.type_()) { self.log(&parent, Some(pad), ts); @@ -384,7 +404,7 @@ impl TracerImpl for QueueLevels { ts: u64, element: &gst::Element, change: gst::StateChange, - _result: gst::StateChangeReturn, + _result: Result<gst::StateChangeSuccess, gst::StateChangeError>, ) { if change.next() != gst::State::Null { return; |