[gstreamermm] fixed registry singleton - extra reference in wrap method



commit aa4070362ab74135dbe5f23009956fe7a4f75a84
Author: Marcin Kolny <marcin kolny gmail com>
Date:   Tue Oct 8 00:56:23 2013 +0200

    fixed registry singleton - extra reference in wrap method

 gstreamer/src/registry.ccg |    6 ++++++
 gstreamer/src/registry.hg  |    3 ++-
 2 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/gstreamer/src/registry.ccg b/gstreamer/src/registry.ccg
index 6cee92a..4fcc79f 100644
--- a/gstreamer/src/registry.ccg
+++ b/gstreamer/src/registry.ccg
@@ -114,4 +114,10 @@ Registry::get_feature_list(const PluginFeature::SlotFilter& filter,
     Glib::OWNERSHIP_DEEP);
 }
 
+Glib::RefPtr<Gst::Registry>
+Registry::get()
+{
+  return Glib::wrap(gst_registry_get(), true);
+}
+
 } //namespace Gst
diff --git a/gstreamer/src/registry.hg b/gstreamer/src/registry.hg
index 32b1de5..d0c298e 100644
--- a/gstreamer/src/registry.hg
+++ b/gstreamer/src/registry.hg
@@ -174,7 +174,8 @@ public:
   _WRAP_METHOD(void remove_feature(const Glib::RefPtr<Gst::PluginFeature>& feature), 
gst_registry_remove_feature)
   _WRAP_METHOD(void add_feature(const Glib::RefPtr<Gst::PluginFeature>& feature), gst_registry_add_feature)
   _WRAP_METHOD(static bool check_feature_version(const Glib::ustring& feature_name, guint min_major, guint 
min_minor, guint min_micro), gst_default_registry_check_feature_version)
-  _WRAP_METHOD(static Glib::RefPtr<Gst::Registry> get(), gst_registry_get)
+  
+  static Glib::RefPtr<Gst::Registry> get();
 };
 
 } // namespace Gst


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