[gstreamermm] Element: Add request_pad() method overloads.
- From: Josà Alburquerque <jaalburqu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gstreamermm] Element: Add request_pad() method overloads.
- Date: Wed, 13 Jul 2011 04:06:53 +0000 (UTC)
commit 5a58b66a8ca5a6937f75a754f900eaac834fda4e
Author: Josà Alburquerque <jaalburqu svn gnome org>
Date: Tue Jul 12 23:09:19 2011 -0400
Element: Add request_pad() method overloads.
* gstreamer/src/element.hg (request_pad): Use the new gmmproc syntax
for specifying optional arguments in the _WRAP_METHOD macro to provide
method overloads not requiring the name or the caps.
ChangeLog | 8 ++++++++
gstreamer/src/element.hg | 3 +--
2 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index be92a27..d2042dc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
2011-07-12 Josà Alburquerque <jaalburqu svn gnome org>
+ Element: Add request_pad() method overloads.
+
+ * gstreamer/src/element.hg (request_pad): Use the new gmmproc syntax
+ for specifying optional arguments in the _WRAP_METHOD macro to provide
+ method overloads not requiring the name or the caps.
+
+2011-07-12 Josà Alburquerque <jaalburqu svn gnome org>
+
configure.ac: Require glibmm-2.28.
* configure.ac: Require glibmm-2.28 because Gst::Mixer uses the
diff --git a/gstreamer/src/element.hg b/gstreamer/src/element.hg
index 2a3a5df..3eb620c 100644
--- a/gstreamer/src/element.hg
+++ b/gstreamer/src/element.hg
@@ -173,8 +173,7 @@ public:
_WRAP_METHOD(Glib::RefPtr<Gst::Pad> get_request_pad(const Glib::ustring& name), gst_element_get_request_pad)
//TODO: The documentation says "The pad should be released with gst_element_release_request_pad().", which is odd. murrayc
- _WRAP_METHOD(Glib::RefPtr<Gst::Pad> request_pad(const Glib::RefPtr<Gst::PadTemplate>& templ, const Glib::ustring& name, const Glib::RefPtr<const Gst::Caps>& caps), gst_element_request_pad)
- //TODO: Write overloads without requiring a name or a caps.
+ _WRAP_METHOD(Glib::RefPtr<Gst::Pad> request_pad(const Glib::RefPtr<Gst::PadTemplate>& templ, const Glib::ustring& name{?}, const Glib::RefPtr<const Gst::Caps>& caps{?}), gst_element_request_pad)
_WRAP_METHOD(Glib::RefPtr<Gst::Pad> get_static_pad(const Glib::ustring& name), gst_element_get_static_pad)
_WRAP_METHOD(Glib::RefPtr<const Gst::Pad> get_static_pad(const Glib::ustring& name) const, gst_element_get_static_pad, constversion)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]