[gstreamermm: 166/167] implemented "request_new_pad" vfunc



commit ee5bfdc81185d3060a0ae5c5e38d12fffc1bbc92
Author: Marcin Kolny at Flytronic.pl <marcin kolny flytronic pl>
Date:   Tue Aug 27 09:05:19 2013 +0200

    implemented "request_new_pad" vfunc

 gstreamer/src/element.hg      |    4 ++++
 gstreamer/src/gst_vfuncs.defs |    1 +
 tools/m4/convert_gst.m4       |    2 ++
 3 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/gstreamer/src/element.hg b/gstreamer/src/element.hg
index 668901b..649b48a 100644
--- a/gstreamer/src/element.hg
+++ b/gstreamer/src/element.hg
@@ -345,6 +345,10 @@ public:
    */
   _WRAP_VFUNC(void release_pad(const Glib::RefPtr<Gst::Pad>& pad), "release_pad")
 
+  /** Called when a new pad is requested.
+   */
+  _WRAP_VFUNC(Glib::RefPtr<Gst::Pad> request_new_pad(Glib::RefPtr<Gst::PadTemplate> templ, const 
Glib::ustring& name, const Glib::RefPtr<const Gst::Caps>& caps), "request_new_pad")
+
   /** Get the state of the element.
    */
   _WRAP_VFUNC(StateChangeReturn get_state(State& state, State& pending, ClockTime timeout) const, 
"get_state")
diff --git a/gstreamer/src/gst_vfuncs.defs b/gstreamer/src/gst_vfuncs.defs
index 53cda99..56b82ae 100644
--- a/gstreamer/src/gst_vfuncs.defs
+++ b/gstreamer/src/gst_vfuncs.defs
@@ -637,6 +637,7 @@
   (parameters
    '("GstPadTemplate*" "templ")
    '("const-gchar*" "name")
+   '("const-GstCaps*" "caps")
   )
 )
 
diff --git a/tools/m4/convert_gst.m4 b/tools/m4/convert_gst.m4
index a6a83e4..46dea04 100644
--- a/tools/m4/convert_gst.m4
+++ b/tools/m4/convert_gst.m4
@@ -76,6 +76,7 @@ _CONVERSION(`GstBus*',`Glib::RefPtr<Gst::Bus>',`Glib::wrap($3)')
 dnl Caps
 _CONVERSION(`GstCaps*',`Glib::RefPtr<Gst::Caps>',`Glib::wrap($3)')
 _CONVERSION(`GstCaps*',`Glib::RefPtr<const Gst::Caps>',`Glib::wrap($3)')
+_CONVERSION(`const GstCaps*',`const Glib::RefPtr<const Gst::Caps>&',`Glib::wrap(const_cast<GstCaps*>($3))')
 _CONVERSION(`Glib::RefPtr<Gst::Caps>',`GstCaps*',`Glib::unwrap($3)')
 _CONVERSION(`const Glib::RefPtr<Gst::Caps>&',`GstCaps*', `Glib::unwrap($3)')
 _CONVERSION(`const Glib::RefPtr<const Gst::Caps>&',`GstCaps*', `const_cast<$2>(Glib::unwrap($3))')
@@ -175,6 +176,7 @@ _CONVERSION(`const Glib::RefPtr<const Gst::Pad>&',`GstPad*',`const_cast<GstPad*>
 
 dnl PadTemplate
 _CONVERSION(`GstPadTemplate*',`Glib::RefPtr<Gst::PadTemplate>', `Glib::wrap($3)')
+_CONVERSION(`Glib::RefPtr<Gst::PadTemplate>',`GstPadTemplate*', `Glib::unwrap($3)')
 _CONVERSION(`const Glib::RefPtr<Gst::PadTemplate>&',`GstPadTemplate*',`Glib::unwrap($3)')
 _CONVERSION(`const Glib::RefPtr<const 
Gst::PadTemplate>&',`GstPadTemplate*',`const_cast<GstPadTemplate*>(Glib::unwrap($3))')
 


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