baseparse/transform/aggregator: Add constants for custom flow returns

This commit is contained in:
Sebastian Dröge 2019-08-14 20:25:59 +03:00
parent eddf4a61ff
commit 85d01e853e

View file

@ -61,6 +61,10 @@ mod base_transform;
pub mod base_parse_frame; pub mod base_parse_frame;
pub use base_parse_frame::BaseParseFrame; 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 // Re-export all the traits in a prelude module, so that applications
// can always "use gst::prelude::*" without getting conflicts // can always "use gst::prelude::*" without getting conflicts
pub mod prelude { pub mod prelude {