[gstreamermm] Gst::Element: minor
- From: Marcin Kolny <mkolny src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gstreamermm] Gst::Element: minor
- Date: Tue, 14 Oct 2014 15:51:58 +0000 (UTC)
commit 1adcd742b0b347386ebaf38169530824ca873ae3
Author: Marcin Kolny <marcin kolny flytronic pl>
Date: Tue Oct 14 17:50:44 2014 +0200
Gst::Element: minor
* gstreamer/src/gst_vfuncs.defs: added set_context virtual function
definition.
* tools/m4/convert_gst.m4: added conversion definition between
GstContext* and Gst::Context refptr.
gstreamer/src/gst_vfuncs.defs | 8 ++++++++
tools/m4/convert_gst.m4 | 1 +
2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/gstreamer/src/gst_vfuncs.defs b/gstreamer/src/gst_vfuncs.defs
index 359e61f..d6ba88d 100644
--- a/gstreamer/src/gst_vfuncs.defs
+++ b/gstreamer/src/gst_vfuncs.defs
@@ -749,6 +749,14 @@
)
)
+(define-vfunc set_context
+ (of-object "GstElement")
+ (return-type "void")
+ (parameters
+ '("GstContext*" "context")
+ )
+)
+
; GstImplementsInterface
(define-vfunc supported
diff --git a/tools/m4/convert_gst.m4 b/tools/m4/convert_gst.m4
index 14c9cca..c958dfd 100644
--- a/tools/m4/convert_gst.m4
+++ b/tools/m4/convert_gst.m4
@@ -110,6 +110,7 @@ _CONVERSION(`const Glib::RefPtr<const ColorBalanceChannel>&',`GstColorBalanceCha
dnl Context
_CONVERSION(`GstContext*',`Glib::RefPtr<Gst::Context>',`Glib::wrap($3)')
+_CONVERSION(`GstContext*',`const Glib::RefPtr<Gst::Context>&',`Glib::wrap($3)')
_CONVERSION(`const Glib::RefPtr<Gst::Context>&',`GstContext*',`$3->gobj()')
dnl DiscovererInfo
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]