Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2022-10-02 11:44:34 +0300
committerSebastian Dröge <sebastian@centricular.com>2022-10-02 11:44:34 +0300
commitf66aafb03915c708e2e6f773444914b5108b9971 (patch)
tree8b8e3f90e26a17770d2c284041b7925685e4b452 /utils
parent8601562efe444902ff8ed2b09c2a386282662bdb (diff)
tracers: queue-levels: Update for `gst::TracerImpl` API changes
Diffstat (limited to 'utils')
-rw-r--r--utils/tracers/src/queue_levels/imp.rs30
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;