utils: Use gst_pad_get_pad_template() in gst_element_get_compatible_pad_template()
authorNiv Sardi <xaiki@evilgiggle.com>
Fri, 25 Jan 2013 09:50:27 +0000 (06:50 -0300)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 14 Feb 2013 09:21:54 +0000 (10:21 +0100)
commit1a1a9e143fb0e155d7627aa8e489cd5d04bc093c
tree754a1cde78bb2fe24f0022eb14b7708b36197c1e
parent6099b35f7e64a80050d23fb224b1fd6b22a5f88d
utils: Use gst_pad_get_pad_template() in gst_element_get_compatible_pad_template()

motivation comes from: /* FIXME: why not gst_pad_get_pad_template (pad); */
this code path is quite nicer, we now only revert to creating the template
if gst_pad_get_pad_template fails.

with this fork, we gain a non-allocation of GstCaps *templcaps

https://bugzilla.gnome.org/show_bug.cgi?id=692508
gst/gstutils.c