convertframe: Fix trivial memory leak in debug statement

gst_element_get_name() requires the caller to g_free() the return value

https://bugzilla.gnome.org/show_bug.cgi?id=719850
This commit is contained in:
Justin Joy 2013-12-05 00:27:14 +09:00 committed by Sebastian Dröge
parent 387e5f0c14
commit 4a81e22607

View file

@ -96,7 +96,7 @@ get_encoder (const GstCaps * caps, GError ** err)
encoder = gst_element_factory_create (factory, NULL);
GST_INFO ("created encoder element %p, %s", encoder,
gst_element_get_name (encoder));
GST_ELEMENT_NAME(encoder));
fail:
if (encoders)