[gstreamermm: 164/167] added is_ghost_pad method to a pad class
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gstreamermm: 164/167] added is_ghost_pad method to a pad class
- Date: Tue, 3 Sep 2013 19:32:52 +0000 (UTC)
commit a633a4db377a3c799ac06ec14765442b6c3d372c
Author: Marcin Kolny at Flytronic.pl <marcin kolny flytronic pl>
Date: Wed Aug 21 15:48:46 2013 +0200
added is_ghost_pad method to a pad class
gstreamer/src/pad.ccg | 5 +++++
gstreamer/src/pad.hg | 5 +++++
2 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/gstreamer/src/pad.ccg b/gstreamer/src/pad.ccg
index f1d1a88..4fe223f 100644
--- a/gstreamer/src/pad.ccg
+++ b/gstreamer/src/pad.ccg
@@ -199,6 +199,11 @@ void Pad::set_chain_function(const SlotChain& slot)
gst_pad_set_chain_function(GST_PAD(gobj()), &Pad_Chain_gstreamermm_callback);
}
+bool Pad::is_ghost_pad() const
+{
+ return GST_IS_GHOST_PAD(gobj());
+}
+
PadProbeInfo::PadProbeInfo()
: gobj_(g_try_new(GstPadProbeInfo, 1)),
take_ownership(true)
diff --git a/gstreamer/src/pad.hg b/gstreamer/src/pad.hg
index 208bc49..a485c6e 100644
--- a/gstreamer/src/pad.hg
+++ b/gstreamer/src/pad.hg
@@ -421,6 +421,11 @@ public:
_WRAP_PROPERTY("direction", PadDirection)
_WRAP_PROPERTY("template", PadTemplate)
+ /**
+ * Checks whether pad is a ghostpad.
+ */
+ bool is_ghost_pad() const;
+
private:
SlotChain slot_chain;
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]