summaryrefslogtreecommitdiff
path: root/src/QGst/element.cpp
diff options
context:
space:
mode:
authorMauricio Piacentini <mauricio.piacentini@collabora.co.uk>2010-11-01 09:07:11 -0200
committerMauricio Piacentini <mauricio.piacentini@collabora.co.uk>2010-11-03 11:34:52 -0200
commit551f3ad27b8db9cee5487c8bdae82f78088d1052 (patch)
tree97319b3cc425a84229fe18a450b111c21848b402 /src/QGst/element.cpp
parentf70551a4ca93cc66d8b664c81415212c943905cc (diff)
Initial implementation of QGst::Event
Diffstat (limited to 'src/QGst/element.cpp')
-rw-r--r--src/QGst/element.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/QGst/element.cpp b/src/QGst/element.cpp
index e72c7fa..fcb9f76 100644
--- a/src/QGst/element.cpp
+++ b/src/QGst/element.cpp
@@ -18,6 +18,7 @@
#include "pad.h"
#include "query.h"
#include "clock.h"
+#include "event.h"
#include <gst/gstelement.h>
#include <gst/gstutils.h>
@@ -131,4 +132,15 @@ bool Element::setClock(const ClockPtr & clock)
return gst_element_set_clock(object<GstElement>(), clock);
}
+bool Element::sendEvent(const EventPtr &event)
+{
+ return gst_element_send_event(object<GstElement>(), event);
+}
+
+bool Element::seek(const Format format, SeekFlags flags, quint64 position)
+{
+ return gst_element_seek_simple(object<GstElement>(), static_cast<GstFormat>(format),
+ static_cast<GstSeekFlags>(static_cast<int>(flags)), position);
+}
+
}