]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gst-editing-services-1.0: Fix BaseEffect.set_time_translation_funcs()
authorRico Tzschichholz <ricotz@ubuntu.com>
Mon, 28 Feb 2022 11:12:56 +0000 (12:12 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Mon, 28 Feb 2022 11:12:56 +0000 (12:12 +0100)
vapi/Makefile.am
vapi/gst-editing-services-1.0.vapi
vapi/metadata/GES-1.0-custom.vala [new file with mode: 0644]
vapi/metadata/GES-1.0.metadata

index 400f2ffd3c2c50a9becf1c4d38411cea326a2d73..7d4d79ce8b90a5f441e0ee72418e7bdfceb28fd8 100644 (file)
@@ -614,7 +614,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
index 247a0327f16336d305b577b52174fcfe2e92a95c..d93e9c90a6249163cec75130dde19109e0d3d998 100644 (file)
@@ -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 (file)
index 0000000..84ba142
--- /dev/null
@@ -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);
+       }
+}
index 5e7532eb15a79da9838789a5b38ab7a2436c316f..bd025ee572aaa23465c134c0a572b57ec3be2502 100644 (file)
@@ -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