examples: unref element after usage

gst_bin_get_by_name_recurse_up() returns an element
reference that must be unreffed after usage.

https://bugzilla.gnome.org/show_bug.cgi?id=734546
This commit is contained in:
Sebastian Rasmussen 2014-07-17 01:34:17 +02:00 committed by Tim-Philipp Müller
parent e297dd1fee
commit 486f30558a

View file

@ -86,6 +86,7 @@ media_configure (GstRTSPMediaFactory * factory, GstRTSPMedia * media,
/* install the callback that will be called when a buffer is needed */
g_signal_connect (appsrc, "need-data", (GCallback) need_data, ctx);
gst_object_unref (appsrc);
}
int