amcvideoenc: Avoid leaking copy of caps object
authorSebastian Rasmussen <sebras@hotmail.com>
Sat, 9 Aug 2014 11:17:17 +0000 (13:17 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 11 Aug 2014 06:49:42 +0000 (08:49 +0200)
commite23ba8498e5c4e570640233d04a5197732f2638f
tree70b634fd68188d7879113aedd133c67ee8eecb31
parent5c7e6176424fcb2b7b98671e17d5d1382140a54f
amcvideoenc: Avoid leaking copy of caps object

gst_pad_get_pad_template_caps() returns a reference which is unreferenced,
so creating a copy using gst_caps_copy() results in a reference leak.
Also remove the incorrect comment to avoid confusion in the future.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=734533
sys/androidmedia/gstamcvideoenc.c