glimagesink: Use gst_pad_get_pad_template_caps in ::get_caps()

This commit is contained in:
Matthieu Bouron 2015-04-28 09:37:59 +02:00 committed by Tim-Philipp Müller
parent c902a6f525
commit dc36647d78

View file

@ -1003,7 +1003,7 @@ gst_glimage_sink_get_caps (GstBaseSink * bsink, GstCaps * filter)
GstCaps *tmp = NULL;
GstCaps *result = NULL;
tmp = gst_caps_from_string ("video/x-raw(memory:GLMemory),format=RGBA");
tmp = gst_pad_get_pad_template_caps (GST_BASE_SINK_PAD (bsink));
if (filter) {
result = gst_caps_intersect_full (filter, tmp, GST_CAPS_INTERSECT_FIRST);