[gstreamermm] Wrap new properties in classes as of GStreamer 0.10.32.



commit de21fb7987a12d7fa1316d97b0ea5315262cf74d
Author: José Alburquerque <jaalburqu svn gnome org>
Date:   Sun May 8 19:13:32 2011 -0400

    Wrap new properties in classes as of GStreamer 0.10.32.
    
    	* gstreamer/src/baseaudiosink.hg:
    	* gstreamer/src/basesink.hg:
    	* gstreamer/src/bin.hg:
    	* gstreamer/src/ghostpad.hg:
    	* gstreamer/src/object.hg:
    	* gstreamer/src/padtemplate.hg: Wrap the properties.
    
    	* gstreamer/src/gst_extra_objects.defs: Add GstStructure to the list
    	of extra objects to avoid a gmmproc documentation parsing error.

 ChangeLog                            |   14 ++++++++++++++
 gstreamer/src/baseaudiosink.hg       |    7 +++++++
 gstreamer/src/basesink.hg            |    3 +++
 gstreamer/src/bin.hg                 |    5 +++--
 gstreamer/src/ghostpad.hg            |    2 +-
 gstreamer/src/gst_extra_objects.defs |    6 ++++++
 gstreamer/src/object.hg              |    2 ++
 gstreamer/src/padtemplate.hg         |    5 +++++
 8 files changed, 41 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 0335adb..40c3d12 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,17 @@
+2011-05-08  José Alburquerque  <jaalburqu svn gnome org>
+
+	Wrap new properties in classes as of GStreamer 0.10.32.
+
+	* gstreamer/src/baseaudiosink.hg:
+	* gstreamer/src/basesink.hg:
+	* gstreamer/src/bin.hg:
+	* gstreamer/src/ghostpad.hg:
+	* gstreamer/src/object.hg:
+	* gstreamer/src/padtemplate.hg: Wrap the properties.
+
+	* gstreamer/src/gst_extra_objects.defs: Add GstStructure to the list
+	of extra objects to avoid a gmmproc documentation parsing error.
+
 2011-05-05  José Alburquerque  <jaalburqu svn gnome org>
 
 	Clean up the build output.
diff --git a/gstreamer/src/baseaudiosink.hg b/gstreamer/src/baseaudiosink.hg
index 44f1af4..b5a74c5 100644
--- a/gstreamer/src/baseaudiosink.hg
+++ b/gstreamer/src/baseaudiosink.hg
@@ -54,6 +54,13 @@ public:
   _WRAP_METHOD(void set_slave_method(Gst::BaseAudioSinkSlaveMethod method), gst_base_audio_sink_set_slave_method)
   _WRAP_METHOD(Gst::BaseAudioSinkSlaveMethod get_slave_method() const, gst_base_audio_sink_get_slave_method)
 
+  _WRAP_PROPERTY("buffer-time", gint64)
+  _WRAP_PROPERTY("can-activate-pull", bool)
+  _WRAP_PROPERTY("drift-tolerance", gint64)
+  _WRAP_PROPERTY("latency-time", gint64)
+  _WRAP_PROPERTY("provide-clock", bool)
+  _WRAP_PROPERTY("slave-method", Gst::BaseAudioSinkSlaveMethod)
+
   /** vfunc to create and return a Gst::RingBuffer to write to.
    */
   _WRAP_VFUNC(Glib::RefPtr<Gst::RingBuffer> create_ring_buffer(), "create_ringbuffer")
diff --git a/gstreamer/src/basesink.hg b/gstreamer/src/basesink.hg
index ae04569..61785b0 100644
--- a/gstreamer/src/basesink.hg
+++ b/gstreamer/src/basesink.hg
@@ -217,6 +217,9 @@ public:
   _WRAP_PROPERTY("sync", bool)
   _WRAP_PROPERTY("ts-offset", gint64)
   _WRAP_PROPERTY("enable-last-buffer", bool)
+  _WRAP_PROPERTY("render-delay", guint64)
+  _WRAP_PROPERTY("throttle-time", guint64)
+  _WRAP_PROPERTY("blocksize", guint)
 
 #m4 _CONVERSION(`Glib::RefPtr<Gst::Caps>', `GstCaps*', `Glib::unwrap($3)')
   /** Called to get sink pad caps from the subclass.
diff --git a/gstreamer/src/bin.hg b/gstreamer/src/bin.hg
index 4a3c8fd..4320548 100644
--- a/gstreamer/src/bin.hg
+++ b/gstreamer/src/bin.hg
@@ -233,6 +233,9 @@ public:
    */
   _MEMBER_GET(num_children, numchildren, int, int)
 
+  _WRAP_PROPERTY("async-handling", bool)
+  _WRAP_PROPERTY("message-forward", bool)
+
 #m4 _CONVERSION(`GstElement*',`const Glib::RefPtr<Gst::Element>&', `Glib::wrap($3, true)')
 
   /** Will be emitted after the element was added to the bin.
@@ -246,8 +249,6 @@ public:
   //TODO: The default signal handler is marked as private in the C header. Is that intendend?
   _WRAP_SIGNAL(bool do_latency(), "do-latency")
 
-  _WRAP_PROPERTY("async-handling", bool)
-
   /** Method to add an element to a bin.
    */
   _WRAP_VFUNC(bool add_element(const Glib::RefPtr<Gst::Element>& element), "add_element")
diff --git a/gstreamer/src/ghostpad.hg b/gstreamer/src/ghostpad.hg
index 644664e..ea5756a 100644
--- a/gstreamer/src/ghostpad.hg
+++ b/gstreamer/src/ghostpad.hg
@@ -107,7 +107,7 @@ public:
    * @return A new Gst::GhostPad, or an empty RefPtr in case of an error.
    * @throw std::runtime_error if Gst::GhostPad construction fails.
    */
-  _WRAP_CREATE( PadDirection dir,
+  _WRAP_CREATE(PadDirection dir,
     const Glib::ustring& name = Glib::ustring())
 
   /** Create a new Gst::GhostPad with @a target as the target. The direction
diff --git a/gstreamer/src/gst_extra_objects.defs b/gstreamer/src/gst_extra_objects.defs
index b73b42d..cf7c2ed 100644
--- a/gstreamer/src/gst_extra_objects.defs
+++ b/gstreamer/src/gst_extra_objects.defs
@@ -39,3 +39,9 @@
   (c-name "GstSegment")
   (gtype-id "GST_TYPE_SEGMENT")
 )
+
+(define-object Structure
+  (in-module "Gst")
+  (c-name "GstStructure")
+  (gtype-id "GST_TYPE_STRUCTURE")
+)
diff --git a/gstreamer/src/object.hg b/gstreamer/src/object.hg
index 4b320ee..a3295dc 100644
--- a/gstreamer/src/object.hg
+++ b/gstreamer/src/object.hg
@@ -98,6 +98,8 @@ public:
   _WRAP_METHOD(void restore(xmlpp::Node* self), gst_object_restore_thyself)
   _WRAP_METHOD(Glib::ustring get_path_string(), gst_object_get_path_string)
 
+  _WRAP_PROPERTY("name", Glib::ustring)
+
 #m4 _CONVERSION(`GstObject*', `const Glib::RefPtr<Object>&', `Glib::wrap($3, true)')
   /** The deep notify signal is used to be notified of property changes. It is
    * typically attached to the toplevel bin to receive notifications from all
diff --git a/gstreamer/src/padtemplate.hg b/gstreamer/src/padtemplate.hg
index c9139bb..10ba667 100644
--- a/gstreamer/src/padtemplate.hg
+++ b/gstreamer/src/padtemplate.hg
@@ -93,6 +93,11 @@ public:
    */
   _MEMBER_GET(presence, presence, PadPresence, GstPadPresence)
 
+  _WRAP_PROPERTY("caps", Glib::RefPtr<Gst::Caps>)
+  _WRAP_PROPERTY("direction", Gst::PadDirection)
+  _WRAP_PROPERTY("name-template", Glib::ustring)
+  _WRAP_PROPERTY("presence", Gst::PadPresence)
+
 #m4 _CONVERSION(`GstPad*',`const Glib::RefPtr<Gst::Pad>&',`Glib::wrap($3, true)')
 
   /** This signal is fired when an element creates a pad from this template.



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