summaryrefslogtreecommitdiff
authorGeorge Kiagiadakis <george.kiagiadakis@collabora.co.uk>2011-02-06 12:50:11 (GMT)
committer George Kiagiadakis <george.kiagiadakis@collabora.co.uk>2011-02-06 12:50:11 (GMT)
commit6fa089c8596116abb5703b422381dbf7c63a16ad (patch) (side-by-side diff)
tree73a97fd6c59fb6bc96d6525a76983fe3b857dbba
parent8f882443a0c2b4229fc12efaafc4b7988eb7e2cc (diff)
downloadqt-gstreamer-6fa089c8596116abb5703b422381dbf7c63a16ad.zip
qt-gstreamer-6fa089c8596116abb5703b422381dbf7c63a16ad.tar.gz
Add Element::removePad().
This is useful for manipulating ghost pads on custom bins.
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--src/QGst/element.cpp5
-rw-r--r--src/QGst/element.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/src/QGst/element.cpp b/src/QGst/element.cpp
index 0679cb6..0a43b77 100644
--- a/src/QGst/element.cpp
+++ b/src/QGst/element.cpp
@@ -78,6 +78,11 @@ bool Element::addPad(const PadPtr & pad)
return gst_element_add_pad(object<GstElement>(), pad);
}
+bool Element::removePad(const PadPtr & pad)
+{
+ return gst_element_remove_pad(object<GstElement>(), pad);
+}
+
PadPtr Element::getStaticPad(const char *name)
{
GstPad *pad = gst_element_get_static_pad(object<GstElement>(), name);
diff --git a/src/QGst/element.h b/src/QGst/element.h
index 2783241..b3637dd 100644
--- a/src/QGst/element.h
+++ b/src/QGst/element.h
@@ -44,6 +44,8 @@ public:
bool setStateLocked(bool locked);
bool addPad(const PadPtr & pad);
+ bool removePad(const PadPtr & pad);
+
PadPtr getStaticPad(const char *name);
PadPtr getRequestPad(const char *name);
void releaseRequestPad(const PadPtr & pad);