mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-22 23:28:16 +00:00
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:
parent
e297dd1fee
commit
486f30558a
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue