mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-23 01:51:06 +00:00
c99928d030
FormatValue is now renamed to GenericFormattedValue and the API slightly changed. In addition there is now a FormattedValue trait, and a SpecificFormattedValue trait plus types for Bytes, Buffers and the existing ClockTime. This allows to create functions like Pad::query_duration<F: SpecificFormattedValue>() -> Option<F> and doesn't require the caller to unwrap the generic value anymore, which is completely unneeded in these cases. In addition, Segment became FormattedSegment<T> with API to upcast/downcast between the specific formatted values and the generic formatted value. This greatly simplifies usage of Segments. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |