summaryrefslogtreecommitdiff
path: root/ext/gl/gstglsinkbin.c
diff options
context:
space:
mode:
authorMatthew Waters <matthew@centricular.com>2015-04-28 20:11:07 +1000
committerMatthew Waters <matthew@centricular.com>2015-04-28 20:13:48 +1000
commit0b7f65bbc345030c0f2866656ba372893f4843a9 (patch)
tree6c61f6dae0e3d7ab1851f0462cff4cd6ea02f21e /ext/gl/gstglsinkbin.c
parentcb56a6b32bd2f1c0afbbc4d5c29a6b4f5a62c807 (diff)
downloadgstreamer-plugins-bad-0b7f65bbc345030c0f2866656ba372893f4843a9.tar.gz
glupload: provide the sink template caps that could be used
https://bugzilla.gnome.org/show_bug.cgi?id=746399
Diffstat (limited to 'ext/gl/gstglsinkbin.c')
-rw-r--r--ext/gl/gstglsinkbin.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/ext/gl/gstglsinkbin.c b/ext/gl/gstglsinkbin.c
index 320a9470b..1f4bd531c 100644
--- a/ext/gl/gstglsinkbin.c
+++ b/ext/gl/gstglsinkbin.c
@@ -43,12 +43,6 @@ static void gst_gl_sink_bin_video_overlay_init (gpointer g_iface,
static void gst_gl_sink_bin_navigation_interface_init (gpointer g_iface,
gpointer g_iface_data);
-static GstStaticPadTemplate gst_gl_sink_bin_template =
-GST_STATIC_PAD_TEMPLATE ("sink",
- GST_PAD_SINK,
- GST_PAD_ALWAYS,
- GST_STATIC_CAPS ("video/x-raw(ANY)"));
-
enum
{
PROP_0,
@@ -79,6 +73,7 @@ gst_gl_sink_bin_class_init (GstGLSinkBinClass * klass)
{
GObjectClass *gobject_class;
GstElementClass *element_class;
+ GstCaps *upload_caps;
gobject_class = (GObjectClass *) klass;
element_class = GST_ELEMENT_CLASS (klass);
@@ -119,8 +114,10 @@ gst_gl_sink_bin_class_init (GstGLSinkBinClass * klass)
"Infrastructure to process GL textures",
"Matthew Waters <matthew@centricular.com>");
+ upload_caps = gst_gl_upload_get_input_template_caps ();
gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&gst_gl_sink_bin_template));
+ gst_pad_template_new ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, upload_caps));
+ gst_caps_unref (upload_caps);
}
static void