mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
client: send out teardown signal before tearing down
The advantage is that in the signal handler you get direct access to information about what streams are about to get torn down (in the GstRTSPClientState). Fixes https://bugzilla.gnome.org/show_bug.cgi?id=697686
This commit is contained in:
parent
825d6f0b51
commit
bba7c4042d
1 changed files with 4 additions and 4 deletions
|
@ -662,6 +662,10 @@ handle_teardown_request (GstRTSPClient * client, GstRTSPClientState * state)
|
|||
|
||||
state->sessmedia = media;
|
||||
|
||||
/* we emit the signal before closing the connection */
|
||||
g_signal_emit (client, gst_rtsp_client_signals[SIGNAL_TEARDOWN_REQUEST],
|
||||
0, state);
|
||||
|
||||
/* unlink the all TCP callbacks */
|
||||
unlink_session_transports (client, session, media);
|
||||
|
||||
|
@ -685,10 +689,6 @@ handle_teardown_request (GstRTSPClient * client, GstRTSPClientState * state)
|
|||
|
||||
send_response (client, session, state->response, TRUE);
|
||||
|
||||
/* we emit the signal before closing the connection */
|
||||
g_signal_emit (client, gst_rtsp_client_signals[SIGNAL_TEARDOWN_REQUEST],
|
||||
0, state);
|
||||
|
||||
return TRUE;
|
||||
|
||||
/* ERRORS */
|
||||
|
|
Loading…
Reference in a new issue