[gstreamermm] Gst::Query: fixed QueryCaps::parse method



commit 8e933eadc6cf7cab953bc34a3ec04a2b574b9780
Author: Marcin Kolny <marcin kolny flytronic pl>
Date:   Thu Oct 30 11:54:36 2014 +0100

    Gst::Query: fixed QueryCaps::parse method
    
        * gstreamer/src/query.ccg: QueryCaps::parse method didn't increase
          caps object reference during wrapping, but it should, because of new
          RefPtr pointer, which is created in this method.

 gstreamer/src/query.ccg |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gstreamer/src/query.ccg b/gstreamer/src/query.ccg
index 601fbd6..2c0af66 100644
--- a/gstreamer/src/query.ccg
+++ b/gstreamer/src/query.ccg
@@ -496,7 +496,7 @@ Glib::RefPtr<Gst::Caps> QueryCaps::parse() const
 {
   GstCaps* caps;
   gst_query_parse_caps(const_cast<GstQuery*>(gobj()), &caps);
-  return Glib::wrap(caps, false);
+  return Glib::wrap(caps, true);
 }
 
 Glib::RefPtr<Gst::Caps> QueryCaps::parse_caps_result() const


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