mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
client: emit new-session when new session is created
Only emit new-session when we created a new session for a client, not when a client picked up a previous session. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=701587
This commit is contained in:
parent
a5490e323b
commit
949f11c643
1 changed files with 4 additions and 3 deletions
|
@ -1307,6 +1307,10 @@ handle_setup_request (GstRTSPClient * client, GstRTSPClientState * state)
|
|||
if (!(session = gst_rtsp_session_pool_create (priv->session_pool)))
|
||||
goto service_unavailable;
|
||||
|
||||
/* signal new session */
|
||||
g_signal_emit (client, gst_rtsp_client_signals[SIGNAL_NEW_SESSION], 0,
|
||||
session);
|
||||
|
||||
state->session = session;
|
||||
|
||||
/* we need a new media configuration in this session */
|
||||
|
@ -1694,9 +1698,6 @@ client_watch_session (GstRTSPClient * client, GstRTSPSession * session)
|
|||
g_object_weak_ref (G_OBJECT (session), (GWeakNotify) client_session_finalized,
|
||||
client);
|
||||
priv->sessions = g_list_prepend (priv->sessions, session);
|
||||
|
||||
g_signal_emit (client, gst_rtsp_client_signals[SIGNAL_NEW_SESSION], 0,
|
||||
session);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue