[clutter-gst] util: expose help to create a CoglVideoSink
- From: Lionel Landwerlin <llandwerlin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter-gst] util: expose help to create a CoglVideoSink
- Date: Thu, 25 Apr 2013 15:44:41 +0000 (UTC)
commit 9a540099a323f580cd848322f6524bac860ca719
Author: Lionel Landwerlin <llandwerlin gmail com>
Date: Sun Apr 14 18:23:06 2013 +0200
util: expose help to create a CoglVideoSink
clutter-gst/clutter-gst-util.c | 15 +++++++++++++++
clutter-gst/clutter-gst-util.h | 2 ++
2 files changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/clutter-gst/clutter-gst-util.c b/clutter-gst/clutter-gst-util.c
index be0257e..2f1ed8b 100644
--- a/clutter-gst/clutter-gst-util.c
+++ b/clutter-gst/clutter-gst-util.c
@@ -239,6 +239,21 @@ clutter_gst_init_with_args (int *argc,
return CLUTTER_INIT_SUCCESS;
}
+/**
+ * clutter_gst_create_video_sink:
+ *
+ * Creates a new #CoglGstVideoSink initialized with Clutter's Cogl context.
+ *
+ * Return value: (transfer full): the newly created #CoglGstVideoSink.
+ *
+ * Since: 3.0
+ */
+GstElement *
+clutter_gst_create_video_sink (void)
+{
+ return GST_ELEMENT (cogl_gst_video_sink_new (clutter_gst_get_cogl_context ()));
+}
+
/**/
CoglContext *
diff --git a/clutter-gst/clutter-gst-util.h b/clutter-gst/clutter-gst-util.h
index 34f63fb..c26ce9a 100644
--- a/clutter-gst/clutter-gst-util.h
+++ b/clutter-gst/clutter-gst-util.h
@@ -46,6 +46,8 @@ ClutterInitError clutter_gst_init_with_args (int *argc,
const char *translation_domain,
GError **error);
+GstElement *clutter_gst_create_video_sink (void);
+
G_END_DECLS
#endif /* __CLUTTER_GST_UTIL_H__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]