[gstreamermm] ElementFactory: Add register_element() wrapping gst_element_register().
- From: Josà Alburquerque <jaalburqu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gstreamermm] ElementFactory: Add register_element() wrapping gst_element_register().
- Date: Tue, 31 Jul 2012 03:52:28 +0000 (UTC)
commit c634ddd9cd7fc782a2cb94454b6f2825385b904b
Author: Josà Alburquerque <jaalburqu svn gnome org>
Date: Mon Jul 30 23:27:27 2012 -0400
ElementFactory: Add register_element() wrapping gst_element_register().
* gstreamer/src/elementfactory.hg: Add the register_element() static
method.
* gstreamer/src/plugin.hg (register_static): Correct the staticity of
this method (it should be a static method).
ChangeLog | 9 +++++++++
gstreamer/src/elementfactory.hg | 4 +++-
gstreamer/src/plugin.hg | 2 +-
3 files changed, 13 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 31e632b..a648bd9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2012-07-30 Josà Alburquerque <jaalburquerque gmail com>
+
+ ElementFactory: Add register_element() wrapping gst_element_register().
+
+ * gstreamer/src/elementfactory.hg: Add the register_element() static
+ method.
+ * gstreamer/src/plugin.hg (register_static): Correct the staticity of
+ this method (it should be a static method).
+
2012-07-23 Josà Alburquerque <jaalburquerque gmail com>
BaseAudioSink: Wrap new properties.
diff --git a/gstreamer/src/elementfactory.hg b/gstreamer/src/elementfactory.hg
index b001a7f..9dd03b3 100644
--- a/gstreamer/src/elementfactory.hg
+++ b/gstreamer/src/elementfactory.hg
@@ -70,7 +70,7 @@ class Plugin;
* @code
* #include <gstreamermm.h>
* #include <iostream>
-
+ *
* int main (int argc, char *argc[])
* {
* Glib::RefPtr<Gst::Element> src;
@@ -103,6 +103,8 @@ class ElementFactory : public PluginFeature
_CLASS_GOBJECT(ElementFactory, GstElementFactory, GST_ELEMENT_FACTORY, PluginFeature, GstPluginFeature)
public:
+ _WRAP_METHOD(static bool register_element(const Glib::RefPtr<Gst::Plugin>& plugin, const Glib::ustring& name, guint rank, GType type), gst_element_register)
+
_WRAP_METHOD(static Glib::RefPtr<Gst::ElementFactory> find(const Glib::ustring& name), gst_element_factory_find)
//Note that name can't be null here, though it seems like gstreamer should allow that as for gst_element_factory_make().
diff --git a/gstreamer/src/plugin.hg b/gstreamer/src/plugin.hg
index 5b218b0..592ed11 100644
--- a/gstreamer/src/plugin.hg
+++ b/gstreamer/src/plugin.hg
@@ -115,7 +115,7 @@ public:
// care of freeing.
_IGNORE(gst_plugin_list_free)
- bool register_static(int major_version, int minor_version,
+ static bool register_static(int major_version, int minor_version,
const Glib::ustring& name, const Glib::ustring& description,
const SlotInit& init_slot, const Glib::ustring& version,
const Glib::ustring& license, const Glib::ustring& source,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]