x264enc: fix caps leak
authorTim-Philipp Müller <tim@centricular.com>
Sat, 15 Jul 2017 13:59:42 +0000 (14:59 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 15 Jul 2017 13:59:42 +0000 (14:59 +0100)
commit58a23c99e932eb4a221673a118d1675fdabd58e2
tree70cd40187ae03e7fe3c33430e98da4b44f3e2c4b
parent841a073154d9ab512b2abba997552b2ae354bc92
x264enc: fix caps leak

Move creation of supported sink pads into class_init function
which is also the only place where they're used. Unref the
caps when no longer needed, the pad template will take its
own ref.

https://bugzilla.gnome.org/show_bug.cgi?id=784982
ext/x264/gstx264enc.c