mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
client: Destroy the rtsp watch after connection close
This commit is contained in:
parent
e327af8a26
commit
9715252588
1 changed files with 9 additions and 0 deletions
|
@ -795,6 +795,15 @@ close_connection (GstRTSPClient * client)
|
||||||
}
|
}
|
||||||
|
|
||||||
gst_rtsp_connection_close (priv->connection);
|
gst_rtsp_connection_close (priv->connection);
|
||||||
|
|
||||||
|
/* connection is now closed, destroy the watch which will also cause the
|
||||||
|
* closed signal to be emitted */
|
||||||
|
if (priv->watch) {
|
||||||
|
GST_DEBUG ("client %p: destroying watch", client);
|
||||||
|
g_source_destroy ((GSource *) priv->watch);
|
||||||
|
priv->watch = NULL;
|
||||||
|
gst_rtsp_client_set_send_func (client, NULL, NULL, NULL);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static gchar *
|
static gchar *
|
||||||
|
|
Loading…
Reference in a new issue