[vala/staging] gstreamer-app-1.0: Don't merge Src.push_buffer_*() signal with its method



commit 5451c70c61d04220d1934796872929bbe6561a02
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Thu Apr 9 14:14:43 2020 +0200

    gstreamer-app-1.0: Don't merge Src.push_buffer_*() signal with its method
    
    Fixes https://gitlab.gnome.org/GNOME/vala/issues/968

 vapi/gstreamer-app-1.0.vapi       | 11 +++++++----
 vapi/metadata/GstApp-1.0.metadata |  3 +++
 2 files changed, 10 insertions(+), 4 deletions(-)
---
diff --git a/vapi/gstreamer-app-1.0.vapi b/vapi/gstreamer-app-1.0.vapi
index 98b51b40f..b3ff55c40 100644
--- a/vapi/gstreamer-app-1.0.vapi
+++ b/vapi/gstreamer-app-1.0.vapi
@@ -60,6 +60,9 @@ namespace Gst {
                        public uint64 get_max_bytes ();
                        public int64 get_size ();
                        public Gst.App.StreamType get_stream_type ();
+                       public virtual Gst.FlowReturn push_buffer (owned Gst.Buffer buffer);
+                       [Version (since = "1.14")]
+                       public virtual Gst.FlowReturn push_buffer_list (owned Gst.BufferList buffer_list);
                        public void set_caps (Gst.Caps caps);
                        [Version (since = "1.10")]
                        public void set_duration (Gst.ClockTime duration);
@@ -91,11 +94,11 @@ namespace Gst {
                        public virtual signal Gst.FlowReturn end_of_stream ();
                        public virtual signal void enough_data ();
                        public virtual signal void need_data (uint length);
-                       [HasEmitter]
-                       public virtual signal Gst.FlowReturn push_buffer (Gst.Buffer buffer);
-                       [HasEmitter]
+                       [CCode (cname = "push-buffer")]
+                       public signal Gst.FlowReturn on_push_buffer (Gst.Buffer buffer);
+                       [CCode (cname = "push-buffer-list")]
                        [Version (since = "1.14")]
-                       public virtual signal Gst.FlowReturn push_buffer_list (Gst.BufferList buffer_list);
+                       public signal Gst.FlowReturn on_push_buffer_list (Gst.BufferList buffer_list);
                        [HasEmitter]
                        [Version (since = "1.6")]
                        public virtual signal Gst.FlowReturn push_sample (Gst.Sample sample);
diff --git a/vapi/metadata/GstApp-1.0.metadata b/vapi/metadata/GstApp-1.0.metadata
index 2cc922ff3..3cd823cca 100644
--- a/vapi/metadata/GstApp-1.0.metadata
+++ b/vapi/metadata/GstApp-1.0.metadata
@@ -1,2 +1,5 @@
 * parent="Gst.App"
 App* name="App(.+)"
+AppSrc
+  .push_buffer#signal name="on_push_buffer"
+  .push_buffer_list#signal name="on_push_buffer_list"


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