[vala/0.54] gst-editing-services-1.0: Fix BaseEffect.set_time_translation_funcs()



commit 1ed199f5cd0f529b35b700fbefffadc8ba0fca16
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Mon Feb 28 12:12:56 2022 +0100

    gst-editing-services-1.0: Fix BaseEffect.set_time_translation_funcs()

 vapi/Makefile.am                   | 2 +-
 vapi/gst-editing-services-1.0.vapi | 4 ++--
 vapi/metadata/GES-1.0-custom.vala  | 6 ++++++
 vapi/metadata/GES-1.0.metadata     | 4 ++++
 4 files changed, 13 insertions(+), 3 deletions(-)
---
diff --git a/vapi/Makefile.am b/vapi/Makefile.am
index 3cf220588..28c74b775 100644
--- a/vapi/Makefile.am
+++ b/vapi/Makefile.am
@@ -585,7 +585,7 @@ gstreamer-webrtc-1.0:
        $(GENVAPI) --library $(srcdir)/gstreamer-webrtc-1.0 --pkg gstreamer-base-1.0 --pkg gstreamer-sdp-1.0 
--metadatadir $(METADATADIR) $(GIRDIR)/GstWebRTC-1.0.gir
 
 gst-editing-services-1.0:
-       $(GENVAPI) --library $(srcdir)/gst-editing-services-1.0 --pkg gstreamer-pbutils-1.0 --pkg 
gstreamer-video-1.0 --metadatadir $(METADATADIR) $(GIRDIR)/GES-1.0.gir
+       $(GENVAPI) --library $(srcdir)/gst-editing-services-1.0 --pkg gstreamer-pbutils-1.0 --pkg 
gstreamer-video-1.0 --metadatadir $(METADATADIR) $(METADATADIR)/GES-1.0-custom.vala $(GIRDIR)/GES-1.0.gir
 
 gtk+-2.0:
        $(GENVAPI) --library $(srcdir)/gtk+-2.0 $(PACKAGESDIR)/gtk+-2.0/gtk+-2.0-custom.vala 
$(PACKAGESDIR)/gtk+-2.0/gtk+-2.0.gi
diff --git a/vapi/gst-editing-services-1.0.vapi b/vapi/gst-editing-services-1.0.vapi
index 3e8eff701..1296572ab 100644
--- a/vapi/gst-editing-services-1.0.vapi
+++ b/vapi/gst-editing-services-1.0.vapi
@@ -77,7 +77,7 @@ namespace GES {
                [Version (since = "1.18")]
                public bool register_time_property (string child_property_name);
                [Version (since = "1.18")]
-               public bool set_time_translation_funcs (GES.BaseEffectTimeTranslationFunc? 
source_to_sink_func, owned GES.BaseEffectTimeTranslationFunc? sink_to_source_func);
+               public bool set_time_translation_funcs ([CCode (delegate_target_pos = 2.33333, 
destroy_notify_pos = 2.66667)] owned GES.BaseEffectTimeTranslationFunc? source_to_sink_func, [CCode 
(delegate_target_pos = 2.33333, destroy_notify_pos = 2.66667)] owned GES.BaseEffectTimeTranslationFunc? 
sink_to_source_func);
        }
        [CCode (cheader_filename = "ges/ges.h", type_id = "ges_base_effect_clip_get_type ()")]
        public abstract class BaseEffectClip : GES.OperationClip, GES.Extractable, GES.MetaContainer {
@@ -367,7 +367,7 @@ namespace GES {
        [CCode (cheader_filename = "ges/ges.h", type_id = "ges_pitivi_formatter_get_type ()")]
        [Version (deprecated = true, deprecated_since = "1.0")]
        public class PitiviFormatter : GES.Formatter, GES.Extractable {
-               [CCode (has_construct_function = false)]
+               [CCode (cheader_filename = "ges/ges-pitivi-formatter.h", has_construct_function = false)]
                public PitiviFormatter ();
        }
        [CCode (cheader_filename = "ges/ges.h", type_id = "ges_project_get_type ()")]
diff --git a/vapi/metadata/GES-1.0-custom.vala b/vapi/metadata/GES-1.0-custom.vala
new file mode 100644
index 000000000..84ba1422f
--- /dev/null
+++ b/vapi/metadata/GES-1.0-custom.vala
@@ -0,0 +1,6 @@
+namespace GES {
+       public abstract class BaseEffect : GES.Operation {
+               [Version (since = "1.18")]
+               public bool set_time_translation_funcs ([CCode (delegate_target_pos = 2.33333, 
destroy_notify_pos = 2.66667)] owned GES.BaseEffectTimeTranslationFunc? source_to_sink_func, [CCode 
(delegate_target_pos = 2.33333, destroy_notify_pos = 2.66667)] owned GES.BaseEffectTimeTranslationFunc? 
sink_to_source_func);
+       }
+}
diff --git a/vapi/metadata/GES-1.0.metadata b/vapi/metadata/GES-1.0.metadata
index 5e7532eb1..bd025ee57 100644
--- a/vapi/metadata/GES-1.0.metadata
+++ b/vapi/metadata/GES-1.0.metadata
@@ -3,6 +3,10 @@
 Asset
        .request_async symbol_type="constructor"
        .request symbol_type="constructor"
+BaseEffect
+       .set_time_translation_funcs skip
+PitiviFormatter
+       .new cheader_filename="ges/ges-pitivi-formatter.h"
 Timeline
        .tracks type_arguments="GES.Track"
 UriClipAsset


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]