diff options
author | George Kiagiadakis <george.kiagiadakis@collabora.co.uk> | 2011-02-06 15:09:46 +0200 |
---|---|---|
committer | George Kiagiadakis <george.kiagiadakis@collabora.co.uk> | 2011-02-06 15:09:46 +0200 |
commit | b7bb93466a1b16a4b1f074dd640db7460b334e9c (patch) | |
tree | 7e38390cd9e85fd16057f150578ddb28167e4a02 | |
parent | 6fa089c8596116abb5703b422381dbf7c63a16ad (diff) |
Add Pad::setActive.
On the application side, this is useful for adding new ghost pads on a running bin.
-rw-r--r-- | src/QGst/pad.cpp | 5 | ||||
-rw-r--r-- | src/QGst/pad.h | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/QGst/pad.cpp b/src/QGst/pad.cpp index 7662b2a..92fafa5 100644 --- a/src/QGst/pad.cpp +++ b/src/QGst/pad.cpp @@ -95,6 +95,11 @@ bool Pad::isActive() const return gst_pad_is_active(object<GstPad>()); } +bool Pad::setActive(bool active) +{ + return gst_pad_set_active(object<GstPad>(), active); +} + bool Pad::isBlocked() const { return gst_pad_is_blocked(object<GstPad>()); diff --git a/src/QGst/pad.h b/src/QGst/pad.h index 41ba8a1..01435f5 100644 --- a/src/QGst/pad.h +++ b/src/QGst/pad.h @@ -55,6 +55,8 @@ public: bool setCaps(const CapsPtr & caps); bool isActive() const; + bool setActive(bool active); + bool isBlocked() const; bool isBlocking() const; bool setBlocked(bool blocked); |