mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
examples: fix another reference leak
gst_rtsp_media_get_element() returns a new ref.
This commit is contained in:
parent
486f30558a
commit
04e69cf83b
1 changed files with 1 additions and 0 deletions
|
@ -87,6 +87,7 @@ media_configure (GstRTSPMediaFactory * factory, GstRTSPMedia * media,
|
||||||
/* install the callback that will be called when a buffer is needed */
|
/* install the callback that will be called when a buffer is needed */
|
||||||
g_signal_connect (appsrc, "need-data", (GCallback) need_data, ctx);
|
g_signal_connect (appsrc, "need-data", (GCallback) need_data, ctx);
|
||||||
gst_object_unref (appsrc);
|
gst_object_unref (appsrc);
|
||||||
|
gst_object_unref (element);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
|
Loading…
Reference in a new issue