[gstreamermm] Event, Message, Plugin, Query: Get Structure as non-const.



commit e5583f5018d12ca1ea8cb3decb0c3e3ee9d7c1a0
Author: Josà Alburquerque <jaalburqu svn gnome org>
Date:   Mon Jul 18 16:46:42 2011 -0400

    Event, Message, Plugin, Query: Get Structure as non-const.
    
    	* gstreamer/src/event.hg:
    	* gstreamer/src/message.hg:
    	* gstreamer/src/plugin.hg:
    	* gstreamer/src/query.hg: When getting a Structure get it a as
    	non-const since it is a copy.

 gstreamer/src/event.hg   |    4 ++--
 gstreamer/src/message.hg |    4 ++--
 gstreamer/src/plugin.hg  |    4 ++--
 gstreamer/src/query.hg   |    4 ++--
 4 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/gstreamer/src/event.hg b/gstreamer/src/event.hg
index daf3329..ff0cf66 100644
--- a/gstreamer/src/event.hg
+++ b/gstreamer/src/event.hg
@@ -130,8 +130,8 @@ public:
   static Glib::RefPtr<Gst::Event> wrap(GstEvent* event, bool take_copy = false);
 
 // A copy is taken so that the original is not freed by the wrapper.
-#m4 _CONVERSION(`const GstStructure*',`const Gst::Structure',`Glib::wrap(const_cast<GstStructure*>($3), true)')
-  _WRAP_METHOD(const Gst::Structure get_structure() const, gst_event_get_structure)
+#m4 _CONVERSION(`const GstStructure*',`Gst::Structure',`Glib::wrap(const_cast<GstStructure*>($3), true)')
+  _WRAP_METHOD(Gst::Structure get_structure() const, gst_event_get_structure)
 
   _WRAP_METHOD(bool has_name(const Glib::ustring& name) const, gst_event_has_name)
 
diff --git a/gstreamer/src/message.hg b/gstreamer/src/message.hg
index 7358f0c..9253c6d 100644
--- a/gstreamer/src/message.hg
+++ b/gstreamer/src/message.hg
@@ -86,8 +86,8 @@ public:
   static Glib::RefPtr<Gst::Message> wrap(GstMessage* message, bool take_copy = false);
 
 // A copy is taken so that the original is not freed by the wrapper.
-#m4 _CONVERSION(`const GstStructure*',`const Gst::Structure',`Glib::wrap(const_cast<GstStructure*>($3), true)')
-  _WRAP_METHOD(const Gst::Structure get_structure() const, gst_message_get_structure)
+#m4 _CONVERSION(`const GstStructure*',`Gst::Structure',`Glib::wrap(const_cast<GstStructure*>($3), true)')
+  _WRAP_METHOD(Gst::Structure get_structure() const, gst_message_get_structure)
 
   /** Checks if a message is writable. If not, a writable copy is made and
    * returned.
diff --git a/gstreamer/src/plugin.hg b/gstreamer/src/plugin.hg
index 15a4adc..a555385 100644
--- a/gstreamer/src/plugin.hg
+++ b/gstreamer/src/plugin.hg
@@ -94,8 +94,8 @@ public:
   _WRAP_METHOD(bool is_loaded() const, gst_plugin_is_loaded)
 
 // A copy is taken so that the original is not freed by the wrapper.
-#m4 _CONVERSION(`const GstStructure*',`const Gst::Structure',`Glib::wrap(const_cast<GstStructure*>($3), true)')
-  _WRAP_METHOD(const Gst::Structure get_cache_data() const, gst_plugin_get_cache_data)
+#m4 _CONVERSION(`const GstStructure*',`Gst::Structure',`Glib::wrap(const_cast<GstStructure*>($3), true)')
+  _WRAP_METHOD(Gst::Structure get_cache_data() const, gst_plugin_get_cache_data)
 
   _WRAP_METHOD(void set_cache_data(Gst::Structure& cache_data), gst_plugin_set_cache_data)
 
diff --git a/gstreamer/src/query.hg b/gstreamer/src/query.hg
index 55f1c89..0348bbe 100644
--- a/gstreamer/src/query.hg
+++ b/gstreamer/src/query.hg
@@ -128,8 +128,8 @@ public:
    Glib::RefPtr<Gst::Query> create_writable();
 
 // A copy is taken so that the original is not freed by the wrapper.
-#m4 _CONVERSION(`GstStructure*',`const Gst::Structure',`Glib::wrap(const_cast<GstStructure*>($3), true)')
-  _WRAP_METHOD(const Gst::Structure get_structure() const, gst_query_get_structure)
+#m4 _CONVERSION(`GstStructure*',`Gst::Structure',`Glib::wrap(const_cast<GstStructure*>($3), true)')
+  _WRAP_METHOD(Gst::Structure get_structure() const, gst_query_get_structure)
 
   /** Get the Gst::QueryType of the query.
    */



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