mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
rtsp-client: do not free main context before rtsp watch
https://bugzilla.gnome.org/show_bug.cgi?id=737110
This commit is contained in:
parent
2745e6f654
commit
17f5785638
1 changed files with 2 additions and 2 deletions
|
@ -750,6 +750,8 @@ gst_rtsp_client_close (GstRTSPClient * client)
|
|||
g_source_destroy ((GSource *) priv->watch);
|
||||
priv->watch = NULL;
|
||||
gst_rtsp_client_set_send_func (client, NULL, NULL, NULL);
|
||||
g_main_context_unref (priv->watch_context);
|
||||
priv->watch_context = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -3301,8 +3303,6 @@ client_watch_notify (GstRTSPClient * client)
|
|||
|
||||
GST_INFO ("client %p: watch destroyed", client);
|
||||
priv->watch = NULL;
|
||||
g_main_context_unref (priv->watch_context);
|
||||
priv->watch_context = NULL;
|
||||
/* remove all sessions and so drop the extra client ref */
|
||||
gst_rtsp_client_session_filter (client, cleanup_session, NULL);
|
||||
g_signal_emit (client, gst_rtsp_client_signals[SIGNAL_CLOSED], 0, NULL);
|
||||
|
|
Loading…
Reference in a new issue