[gstreamermm] convert: add one more GstMessage conversion



commit c076ce031999774f16fec537ea2eacd3ee274599
Author: Marcin Kolny <marcin kolny gmail com>
Date:   Sat Aug 8 08:35:55 2015 +0000

    convert: add one more GstMessage conversion
    
        * tools/m4/convert_gst.m4: add conversion definition from Gst::Message
          rvalue reference refptr to GstMessage pointer.

 tools/m4/convert_gst.m4 |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/tools/m4/convert_gst.m4 b/tools/m4/convert_gst.m4
index e66e5f1..9c3321c 100644
--- a/tools/m4/convert_gst.m4
+++ b/tools/m4/convert_gst.m4
@@ -199,6 +199,7 @@ dnl Message
 _CONVERSION(`GstMessage*',`Glib::RefPtr<Gst::Message>',`Glib::wrap($3)')
 _CONVERSION(`GstMessage*',`Glib::RefPtr<const Gst::Message>',`Glib::wrap($3)')
 _CONVERSION(`const Glib::RefPtr<Gst::Message>&',`GstMessage*', `Glib::unwrap($3)')
+_CONVERSION(`Glib::RefPtr<Gst::Message>&&',`GstMessage*',`($3) ? $3.release()->gobj() : nullptr')
 
 dnl MiniObject
 _CONVERSION(`GstMiniObject*',`Glib::RefPtr<Gst::MiniObject>',`Glib::wrap($3)')


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