Commit 14b79218 authored by Guillaume Desmottes's avatar Guillaume Desmottes 🐐
Browse files

glvideomixer: override sink pad template

Allow us to pass the GType of its pad and so
improve the documentation when inspecting glvideomixer.

Fix #1253
parent 77937f93
Pipeline #603241 waiting for manual action with stages
in 1 minute and 5 seconds
......@@ -412,6 +412,7 @@ gst_gl_video_mixer_bin_class_init (GstGLVideoMixerBinClass * klass)
GstGLMixerBinClass *mixer_class = GST_GL_MIXER_BIN_CLASS (klass);
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
GstCaps *upload_caps;
mixer_class->create_input_pad = _create_video_mixer_input;
......@@ -423,6 +424,15 @@ gst_gl_video_mixer_bin_class_init (GstGLVideoMixerBinClass * klass)
/* override the sink_%u pad template from GstGLMixerBin.
* We pass it the GType of our sink pad so it's properly documented when
* inspecting the element. */
upload_caps = gst_gl_upload_get_input_template_caps ();
gst_element_class_add_pad_template (element_class,
gst_pad_template_new_with_gtype ("sink_%u", GST_PAD_SINK, GST_PAD_REQUEST,
upload_caps, gst_gl_video_mixer_input_get_type ()));
gst_caps_unref (upload_caps);
gst_element_class_set_metadata (element_class, "OpenGL video_mixer bin",
"Bin/Filter/Effect/Video/Compositor", "OpenGL video_mixer bin",
"Matthew Waters <>");
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment