From 85d01e853e1044980e2cd8dd0b3b14f4f7e74059 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 14 Aug 2019 20:25:59 +0300 Subject: [PATCH] baseparse/transform/aggregator: Add constants for custom flow returns --- gstreamer-base/src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gstreamer-base/src/lib.rs b/gstreamer-base/src/lib.rs index bb70667d8..f60368c8b 100644 --- a/gstreamer-base/src/lib.rs +++ b/gstreamer-base/src/lib.rs @@ -61,6 +61,10 @@ mod base_transform; pub mod base_parse_frame; pub use base_parse_frame::BaseParseFrame; +pub const BASE_TRANSFORM_FLOW_DROPPED: gst::FlowSuccess = gst::FlowSuccess::CustomSuccess; +pub const BASE_PARSE_FLOW_DROPPED: gst::FlowSuccess = gst::FlowSuccess::CustomSuccess; +pub const AGGREGATOR_FLOW_NEED_DATA: gst::FlowError = gst::FlowError::CustomError; + // Re-export all the traits in a prelude module, so that applications // can always "use gst::prelude::*" without getting conflicts pub mod prelude {