gstrtspclientsink: unref transports when closing bin

Fixes #91
This commit is contained in:
Adam x Nilsson 2019-12-09 14:17:05 +01:00
parent faf8f87a02
commit 8d4a9f37e5

View file

@ -3360,8 +3360,11 @@ gst_rtsp_client_sink_close (GstRTSPClientSink * sink, gboolean async,
for (walk = sink->contexts; walk; walk = g_list_next (walk)) {
GstRTSPStreamContext *context = (GstRTSPStreamContext *) walk->data;
if (context->stream_transport)
if (context->stream_transport) {
gst_rtsp_stream_transport_set_active (context->stream_transport, FALSE);
gst_object_unref (context->stream_transport);
context->stream_transport = NULL;
}
if (context->joined) {
gst_rtsp_stream_leave_bin (context->stream, GST_BIN (sink->internal_bin),