summaryrefslogtreecommitdiffstats
path: root/sys/glsink/gstopengl.c
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2007-12-18 01:25:58 +0000
committerDavid Schleef <ds@schleef.org>2007-12-18 01:25:58 +0000
commit4625e68226117c9e57939d66fafd26c3fba7470c (patch)
tree8471c6b295cc9448d33a3438a19f845e6d65c578 /sys/glsink/gstopengl.c
parent45e90efd1b3f19b231fd4e4cc753e2870aa62d0a (diff)
downloadgst-plugins-bad-4625e68226117c9e57939d66fafd26c3fba7470c.tar.gz
gst-plugins-bad-4625e68226117c9e57939d66fafd26c3fba7470c.tar.bz2
gst-plugins-bad-4625e68226117c9e57939d66fafd26c3fba7470c.zip
sys/glsink/: Use new GstVideoFormat checked into -base. Add new glupload element to upload raw video into a GLXPixbu...
Original commit message from CVS: * sys/glsink/Makefile.am: * sys/glsink/glimagesink.c: * sys/glsink/glimagesink.h: * sys/glsink/glvideo.c: * sys/glsink/glvideo.h: * sys/glsink/gstopengl.c: * sys/glsink/gstglupload.c: Use new GstVideoFormat checked into -base. Add new glupload element to upload raw video into a GLXPixbuf. Untested. Will likely crash your motorcycle if you try it. * sys/glsink/gstvideo-common.c: * sys/glsink/gstvideo-common.h: Remove.
Diffstat (limited to 'sys/glsink/gstopengl.c')
-rw-r--r--sys/glsink/gstopengl.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/sys/glsink/gstopengl.c b/sys/glsink/gstopengl.c
index 2592aff0..7116174a 100644
--- a/sys/glsink/gstopengl.c
+++ b/sys/glsink/gstopengl.c
@@ -32,6 +32,9 @@
#include <glimagesink.h>
+GType gst_gl_upload_get_type (void);
+
+
static gboolean
plugin_init (GstPlugin * plugin)
{
@@ -42,6 +45,16 @@ plugin_init (GstPlugin * plugin)
GST_RANK_MARGINAL, GST_TYPE_GLIMAGE_SINK)) {
return FALSE;
}
+ if (!gst_element_register (plugin, "glupload",
+ GST_RANK_MARGINAL, gst_gl_upload_get_type ())) {
+ return FALSE;
+ }
+#if 0
+ if (!gst_element_register (plugin, "gldownload",
+ GST_RANK_MARGINAL, GST_TYPE_GL_DOWNLOAD)) {
+ return FALSE;
+ }
+#endif
return TRUE;
}