projects
/
platform
/
upstream
/
gstreamer.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
client: send out teardown signal before tearing down
[platform/upstream/gstreamer.git]
/
gst
/
rtsp-server
/
rtsp-client.c
diff --git
a/gst/rtsp-server/rtsp-client.c
b/gst/rtsp-server/rtsp-client.c
index
af07253
..
5b5affe
100644
(file)
--- a/
gst/rtsp-server/rtsp-client.c
+++ b/
gst/rtsp-server/rtsp-client.c
@@
-662,6
+662,10
@@
handle_teardown_request (GstRTSPClient * client, GstRTSPClientState * state)
state->sessmedia = media;
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);
/* 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);
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 */
return TRUE;
/* ERRORS */