[gstreamermm] Gst::Pad: minor fix in proxy_query_caps wrapper



commit 6901a7c7b7f68b02ee8fe75c1f94bcb7cb735581
Author: Marcin Kolny <marcin kolny flytronic pl>
Date:   Wed Oct 1 12:11:34 2014 +0200

    Gst::Pad: minor fix in proxy_query_caps wrapper
    
        * gstreamer/src/pad.hg: query argument should be passed by reference.
          Passing by copy increases refcount, and object is no longer writable
          in that case. But gst_pad_proxy_query_caps requires writable object.

 gstreamer/src/pad.hg |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gstreamer/src/pad.hg b/gstreamer/src/pad.hg
index b9d2d9e..69403dd 100644
--- a/gstreamer/src/pad.hg
+++ b/gstreamer/src/pad.hg
@@ -220,8 +220,8 @@ public:
   _IGNORE(gst_pad_get_range)
 
   _WRAP_METHOD(bool query_accept_caps(const Glib::RefPtr<const Gst::Caps>& caps) const, 
gst_pad_query_accept_caps)
-  _WRAP_METHOD(bool proxy_query_caps(Glib::RefPtr<Gst::Query> query), gst_pad_proxy_query_caps)
-  _WRAP_METHOD(bool proxy_query_caps(Glib::RefPtr<Gst::Query> query) const, gst_pad_proxy_query_caps, 
constversion)
+  _WRAP_METHOD(bool proxy_query_caps(const Glib::RefPtr<Gst::Query>& query), gst_pad_proxy_query_caps)
+  _WRAP_METHOD(bool proxy_query_caps(const Glib::RefPtr<Gst::Query>& query) const, gst_pad_proxy_query_caps, 
constversion)
   _WRAP_METHOD(bool peer_query_accept_caps(const Glib::RefPtr<const Gst::Caps>& caps) const, 
gst_pad_peer_query_accept_caps)
 
   // This method is written manually because an extra ref is necessary


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