mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 04:00:37 +00:00
stream: clear session and caps for reuse
Set the session and caps to NULL after unref otherwise we might unref them again later. See https://bugzilla.gnome.org/show_bug.cgi?id=698376
This commit is contained in:
parent
bba7c4042d
commit
6081f91351
1 changed files with 2 additions and 0 deletions
|
@ -1220,8 +1220,10 @@ gst_rtsp_stream_leave_bin (GstRTSPStream * stream, GstBin * bin,
|
|||
priv->send_src[1] = NULL;
|
||||
|
||||
g_object_unref (priv->session);
|
||||
priv->session = NULL;
|
||||
if (priv->caps)
|
||||
gst_caps_unref (priv->caps);
|
||||
priv->caps = NULL;
|
||||
|
||||
priv->is_joined = FALSE;
|
||||
g_mutex_unlock (&priv->lock);
|
||||
|
|
Loading…
Reference in a new issue