gldownload: allow video/x-raw as input
authorAlessandro Decina <alessandro.d@gmail.com>
Mon, 1 Feb 2016 04:13:03 +0000 (15:13 +1100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:32:16 +0000 (19:32 +0000)
...and just passthrough. This is useful for pipelines where downstream must be
non-GL but upstream can optionally be GL.

ext/gl/gstgldownloadelement.c

index 917bdc7..ff931fa 100644 (file)
@@ -53,10 +53,10 @@ static GstStaticPadTemplate gst_gl_download_element_src_pad_template =
     GST_STATIC_CAPS ("video/x-raw; video/x-raw(memory:GLMemory)"));
 
 static GstStaticPadTemplate gst_gl_download_element_sink_pad_template =
-GST_STATIC_PAD_TEMPLATE ("sink",
+    GST_STATIC_PAD_TEMPLATE ("sink",
     GST_PAD_SINK,
     GST_PAD_ALWAYS,
-    GST_STATIC_CAPS ("video/x-raw(memory:GLMemory)"));
+    GST_STATIC_CAPS ("video/x-raw(memory:GLMemory); video/x-raw"));
 
 static void
 gst_gl_download_element_class_init (GstGLDownloadElementClass * klass)