[gstreamermm] Gst:Buffer: add missing member getters
- From: Marcin Kolny <mkolny src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gstreamermm] Gst:Buffer: add missing member getters
- Date: Sat, 21 May 2016 15:09:36 +0000 (UTC)
commit 6ccb4b77598658f46fa2a8872a743e176c2b3edb
Author: Marcin Kolny <marcin kolny gmail com>
Date: Mon May 16 17:15:34 2016 +0200
Gst:Buffer: add missing member getters
gstreamer/src/bin.{ccg|hg}: add some getters.
tools/m4/convert_gst.m4: add missing conversion definition.
gstreamer/src/bin.ccg | 3 ++-
gstreamer/src/bin.hg | 30 ++++++++++++++++++++++++++++--
tools/m4/convert_gst.m4 | 1 +
3 files changed, 31 insertions(+), 3 deletions(-)
---
diff --git a/gstreamer/src/bin.ccg b/gstreamer/src/bin.ccg
index 804f080..7fcfafc 100644
--- a/gstreamer/src/bin.ccg
+++ b/gstreamer/src/bin.ccg
@@ -1,6 +1,6 @@
/* gstreamermm - a C++ wrapper for gstreamer
*
- * Copyright 2008-2015 The gstreamermm Development Team
+ * Copyright 2008-2016 The gstreamermm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -21,6 +21,7 @@
#include <gstreamermm/pad.h>
#include <gstreamermm/ghostpad.h>
#include <gstreamermm/iterator.h>
+#include <gstreamermm/bus.h>
#include <gstreamermm/handle_error.h>
_PINCLUDE(glibmm/private/object_p.h)
diff --git a/gstreamer/src/bin.hg b/gstreamer/src/bin.hg
index c31811b..6fc8afd 100644
--- a/gstreamer/src/bin.hg
+++ b/gstreamer/src/bin.hg
@@ -1,6 +1,6 @@
/* gstreamermm - a C++ wrapper for gstreamer
*
- * Copyright 2008-2015 The gstreamermm Development Team
+ * Copyright 2008-2016 The gstreamermm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -129,7 +129,8 @@ _WRAP_ENUM(BinFlags, GstBinFlags)
* If all the sinks return true, the bin will also return true, else false is
* returned. If no sinks are in the bin, the event handler will return true.
*
- * Last reviewed on 2014-08-28 (1.2.4)
+ * Last reviewed on 2016-05-05 (1.8.0).
+ *
* @ingroup GstBaseClasses
*/
@@ -252,6 +253,31 @@ public:
*/
_MEMBER_GET(num_children, numchildren, int, int)
+ /** Gets the internal bus for handling child messages.
+ */
+ _MEMBER_GET_GOBJECT(child_bus,child_bus, Gst::Bus, GstBus*)
+
+ #m4 _CONVERSION(`GList*',`Glib::ListHandle< Glib::RefPtr<Gst::Message> >',`$2($3, Glib::OWNERSHIP_NONE)')
+ /** Gets the bin's queued and cached messages.
+ */
+ _MEMBER_GET(messages, messages, Glib::ListHandle< Glib::RefPtr<Gst::Message> >, GList*)
+
+ /** Gets whether the bin is currently calculating its state.
+ */
+ _MEMBER_GET(polling, polling, bool, gboolean)
+
+ /** Gets whether the bin needs to select a new clock.
+ */
+ _MEMBER_GET(clock_dirty, clock_dirty, bool, gboolean)
+
+ /** Gets the last clock selected.
+ */
+ _MEMBER_GET_GOBJECT(provided_clock, provided_clock, Gst::Clock, GstClock*)
+
+ /** Gets the element that provided @a provided_clock.
+ */
+ _MEMBER_GET_GOBJECT(clock_provider, clock_provider, Gst::Element, GstElement*)
+
_WRAP_PROPERTY("async-handling", bool)
_WRAP_PROPERTY("message-forward", bool)
diff --git a/tools/m4/convert_gst.m4 b/tools/m4/convert_gst.m4
index ce7bea5..d9f1449 100644
--- a/tools/m4/convert_gst.m4
+++ b/tools/m4/convert_gst.m4
@@ -125,6 +125,7 @@ _CONVERSION(`const Glib::RefPtr<Gst::BufferList>&', `GstBufferList*', `Glib::unw
dnl Bus
_CONVERSION(`const Glib::RefPtr<Gst::Bus>&',`GstBus*', `Glib::unwrap($3)')
_CONVERSION(`GstBus*',`Glib::RefPtr<Gst::Bus>',`Glib::wrap($3)')
+_CONVERSION(`GstBus*',`Glib::RefPtr<const Gst::Bus>',`Glib::wrap($3)')
dnl Caps
_CONVERSION(`GstCaps*',`Glib::RefPtr<Gst::Caps>',`Glib::wrap($3)')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]