From 1b1a99b3209079a5d3102eb3a9beffb9248ea4f5 Mon Sep 17 00:00:00 2001 From: Marijn Suijten Date: Sun, 6 Dec 2020 11:45:48 +0100 Subject: [PATCH] audio,video: Use manual implementations for fns using *Endianness {Audio,Video}Endianness is an enumeration to represent the two possible values in Rust but this enumeration does not exist as such in C, where it is merely an integer with some constants defining possible values. --- gstreamer-audio/Gir.toml | 5 +++++ gstreamer-video/Gir.toml | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/gstreamer-audio/Gir.toml b/gstreamer-audio/Gir.toml index a41c1b5b3..1be7d03e8 100644 --- a/gstreamer-audio/Gir.toml +++ b/gstreamer-audio/Gir.toml @@ -154,6 +154,11 @@ status = "generate" # as AudioFormatInfo::from_format() ignore = true + [[object.function]] + name = "build_integer" + # Use custom AudioEndianness enum + manual = true + [[object]] name = "GstAudio.AudioStreamAlign" status = "generate" diff --git a/gstreamer-video/Gir.toml b/gstreamer-video/Gir.toml index a258e56c2..c1dbdb602 100644 --- a/gstreamer-video/Gir.toml +++ b/gstreamer-video/Gir.toml @@ -400,6 +400,11 @@ status = "generate" # as VideoFormatInfo::from_format() ignore = true + [[object.function]] + name = "from_masks" + # Use custom VideoEndianness enum + manual = true + [[object]] name = "GstVideo.VideoSink" status = "generate"