diff --git a/gstreamer/src/buffer_serde.rs b/gstreamer/src/buffer_serde.rs index 5dbff9fa7..1b0e096f4 100644 --- a/gstreamer/src/buffer_serde.rs +++ b/gstreamer/src/buffer_serde.rs @@ -16,6 +16,9 @@ use BufferFlags; use BufferRef; use ClockTime; +// TODO: try `Either` to merge the base reprensentations for ser and de +// while avoiding unneeded copy + impl<'a> Serialize for BufferRef { fn serialize(&self, serializer: S) -> Result { let mut buffer = serializer.serialize_struct("Buffer", 6)?;