Skip to content

gst/format: Signed wrapper

François Laignel requested to merge fengalin/gstreamer-rs:signed-wrapper into main

Functions such as Segment::to_running_time_full replicate the C signature for the return type: an integer indicates whether the resulting value must be interpreted as positive or negative. In Rust, alternatives are usually represented using an enum.

This commit implements an enum wrapper to represent the sign and adds functions to FormattedValue to ease Signed handling.

Fixes #394 (closed)

Merge request reports

Loading