From 873c879367d1a4d7265e32dda55d4c01d5dd957b Mon Sep 17 00:00:00 2001 From: Rico Tzschichholz Date: Mon, 9 Aug 2021 08:11:04 +0200 Subject: [PATCH] Partly revert "gstreamer: Update from 1.19.0+ git master" This partly reverts commit e1f0316ba4fba6e47f91fbe447ab8e6db038a54b. Fixes https://gitlab.gnome.org/GNOME/vala/issues/1210 --- vapi/gstreamer-audio-1.0.vapi | 3 +++ vapi/gstreamer-video-1.0.vapi | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/vapi/gstreamer-audio-1.0.vapi b/vapi/gstreamer-audio-1.0.vapi index a98c6211f..1c33ba86f 100644 --- a/vapi/gstreamer-audio-1.0.vapi +++ b/vapi/gstreamer-audio-1.0.vapi @@ -366,6 +366,8 @@ namespace Gst { public bool convert (Gst.Format src_fmt, int64 src_val, Gst.Format dest_fmt, out int64 dest_val); public Gst.Audio.Info copy (); public void free (); + public bool from_caps (Gst.Caps caps); + public void init (); [Version (since = "1.2")] public bool is_equal (Gst.Audio.Info other); public void set_format (Gst.Audio.Format format, int rate, int channels, [CCode (array_length = false)] Gst.Audio.ChannelPosition position[64]); @@ -537,6 +539,7 @@ namespace Gst { public int n_planes; public void* planes; public weak Gst.Buffer buffer; + public bool map (Gst.Audio.Info info, Gst.Buffer gstbuffer, Gst.MapFlags flags); public void unmap (); } [CCode (cheader_filename = "gst/audio/audio.h", has_type_id = false)] diff --git a/vapi/gstreamer-video-1.0.vapi b/vapi/gstreamer-video-1.0.vapi index db41717ea..15248f47d 100644 --- a/vapi/gstreamer-video-1.0.vapi +++ b/vapi/gstreamer-video-1.0.vapi @@ -392,6 +392,8 @@ namespace Gst { public Gst.Video.Info copy (); [Version (since = "1.6")] public void free (); + public bool from_caps (Gst.Caps caps); + public void init (); public bool is_equal (Gst.Video.Info other); public bool set_format (Gst.Video.Format format, uint width, uint height); [Version (since = "1.16")] @@ -798,6 +800,8 @@ namespace Gst { public Gst.MapInfo map_info[4]; public bool copy (Gst.Video.Frame src); public bool copy_plane (Gst.Video.Frame src, uint plane); + public bool map (Gst.Video.Info info, Gst.Buffer buffer, Gst.MapFlags flags); + public bool map_id (Gst.Video.Info info, Gst.Buffer buffer, int id, Gst.MapFlags flags); public void unmap (); } [CCode (cheader_filename = "gst/video/video.h", has_type_id = false)] -- 2.47.2