client: TEARDOWN brings that state to Init again
authorWim Taymans <wim.taymans@collabora.co.uk>
Thu, 29 Nov 2012 11:30:20 +0000 (12:30 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Thu, 29 Nov 2012 11:30:20 +0000 (12:30 +0100)
gst/rtsp-server/rtsp-client.c

index e8f3957..ce3194b 100644 (file)
@@ -675,6 +675,8 @@ handle_teardown_request (GstRTSPClient * client, GstRTSPClientState * state)
 
   send_response (client, session, state->response, TRUE);
 
+  gst_rtsp_session_media_set_rtsp_state (media, GST_RTSP_STATE_INIT);
+
   /* we emit the signal before closing the connection */
   g_signal_emit (client, gst_rtsp_client_signals[SIGNAL_TEARDOWN_REQUEST],
       0, state);