gldownload: allow video/x-raw as input

...and just passthrough. This is useful for pipelines where downstream must be
non-GL but upstream can optionally be GL.
This commit is contained in:
Alessandro Decina 2016-02-01 15:13:03 +11:00 committed by Tim-Philipp Müller
parent de5f87e72b
commit 2f8f4a5b90

View 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)")); GST_STATIC_CAPS ("video/x-raw; video/x-raw(memory:GLMemory)"));
static GstStaticPadTemplate gst_gl_download_element_sink_pad_template = static GstStaticPadTemplate gst_gl_download_element_sink_pad_template =
GST_STATIC_PAD_TEMPLATE ("sink", GST_STATIC_PAD_TEMPLATE ("sink",
GST_PAD_SINK, GST_PAD_SINK,
GST_PAD_ALWAYS, GST_PAD_ALWAYS,
GST_STATIC_CAPS ("video/x-raw(memory:GLMemory)")); GST_STATIC_CAPS ("video/x-raw(memory:GLMemory); video/x-raw"));
static void static void
gst_gl_download_element_class_init (GstGLDownloadElementClass * klass) gst_gl_download_element_class_init (GstGLDownloadElementClass * klass)