examples: fix another reference leak

gst_rtsp_media_get_element() returns a new ref.
This commit is contained in:
Tim-Philipp Müller 2014-08-09 14:41:35 +01:00
parent 486f30558a
commit 04e69cf83b

View file

@ -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