[gstreamermm] Gst::ChildProxy: renew childproxy interface



commit 5b8db9dfe7cdf0902c55e0e5d2e55c3df65a36c7
Author: Marcin Kolny <marcin kolny gmail com>
Date:   Mon May 16 21:39:12 2016 +0200

    Gst::ChildProxy: renew childproxy interface
    
        * gstreamer/src/childproxy.{ccg|hg}: minor changes in the interface.

 gstreamer/src/childproxy.ccg |    7 +++----
 gstreamer/src/childproxy.hg  |    9 ++++++---
 2 files changed, 9 insertions(+), 7 deletions(-)
---
diff --git a/gstreamer/src/childproxy.ccg b/gstreamer/src/childproxy.ccg
index 538fab6..714bde8 100644
--- a/gstreamer/src/childproxy.ccg
+++ b/gstreamer/src/childproxy.ccg
@@ -1,6 +1,6 @@
 /* gstreamermm - a C++ wrapper for gstreamer
  *
- * Copyright 2008-2015 The gstreamermm Development Team
+ * Copyright 2008-2016 The gstreamermm Development Team
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -22,12 +22,11 @@
 namespace Gst
 {
 
-bool ChildProxy::lookup(const Glib::RefPtr<Gst::ChildProxy>& object,
-  const Glib::ustring& name, Glib::RefPtr<Glib::Object>& target,
+bool ChildProxy::lookup(const Glib::ustring& name, Glib::RefPtr<Glib::Object>& target,
   GParamSpec*& pspec)
 {
   GObject* g_object = nullptr;
-  bool const result = gst_child_proxy_lookup(Glib::unwrap(object),
+  bool const result = gst_child_proxy_lookup(gobj(),
     name.c_str(), &g_object, &pspec);
   target = Glib::wrap(g_object);
   return result;
diff --git a/gstreamer/src/childproxy.hg b/gstreamer/src/childproxy.hg
index 9ac9198..0413f41 100644
--- a/gstreamer/src/childproxy.hg
+++ b/gstreamer/src/childproxy.hg
@@ -1,6 +1,6 @@
 /* gstreamermm - a C++ wrapper for gstreamer
  *
- * Copyright 2008-2015 The gstreamermm Development Team
+ * Copyright 2008-2016 The gstreamermm Development Team
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -43,6 +43,9 @@ class Object;
  * Property names are written as "child-name::property-name". The whole naming
  * scheme is recursive. Thus "child1::child2::property" is valid too, if
  * "child1" and "child2" implement the Gst::ChildProxy interface.
+ *
+ * Last reviewed on 2016-05-16 (1.8.0)
+ *
  * @ingroup GstInterfaces
  */
 class ChildProxy : public Glib::Interface
@@ -52,7 +55,7 @@ class ChildProxy : public Glib::Interface
 public:
   _WRAP_METHOD(guint get_children_count() const, gst_child_proxy_get_children_count)
 
-#m4 _CONVERSION(`GObject*',`Glib::RefPtr<Gst::Object>',`Glib::wrap(GST_OBJECT($3))')
+#m4 _CONVERSION(`GObject*',`Glib::RefPtr<Gst::Object>',`Glib::wrap(GST_OBJECT($3), true)')
 
   _WRAP_METHOD(Glib::RefPtr<Gst::Object> get_child(const Glib::ustring& name), 
gst_child_proxy_get_child_by_name)
   _WRAP_METHOD(Glib::RefPtr<const Gst::Object> get_child(const Glib::ustring& name) const, 
gst_child_proxy_get_child_by_name, constversion)
@@ -62,7 +65,7 @@ public:
 
   _WRAP_METHOD_DOCS_ONLY(gst_child_proxy_lookup)
   //TODO: Maybe GParamSpec should be wrapped in glibmm?
-  static bool lookup(const Glib::RefPtr<Gst::ChildProxy>& object, const Glib::ustring& name, 
Glib::RefPtr<Glib::Object>& target, GParamSpec*& pspec);
+  bool lookup(const Glib::ustring& name, Glib::RefPtr<Glib::Object>& target, GParamSpec*& pspec);
 
   /** Gets a single property using the Gst::ChildProxy mechanism.
    * @param name The property to get.


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