Revert "client: TEARDOWN brings that state to Init again"
authorWim Taymans <wim.taymans@collabora.co.uk>
Thu, 29 Nov 2012 16:07:30 +0000 (17:07 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Thu, 29 Nov 2012 16:07:30 +0000 (17:07 +0100)
This reverts commit 4b61fdad85a3ca84752bf074fdb2fa203954b32e.

The object is already disposed, there is no point in setting the state.

gst/rtsp-server/rtsp-client.c

index ce3194b..e8f3957 100644 (file)
@@ -675,8 +675,6 @@ 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);