From a6556551e31671df9a1b872b7640b1962c5cdcb0 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Sat, 11 Dec 2010 10:53:28 +0100 Subject: [PATCH] rtsp-server: Remove unused variable and dead assignment --- gst/rtsp-server/rtsp-client.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/gst/rtsp-server/rtsp-client.c b/gst/rtsp-server/rtsp-client.c index 8207fcca4a..16646b74d0 100644 --- a/gst/rtsp-server/rtsp-client.c +++ b/gst/rtsp-server/rtsp-client.c @@ -763,7 +763,6 @@ handle_setup_request (GstRTSPClient * client, GstRTSPUrl * uri, gchar *trans_str, *pos; guint streamid; GstRTSPSessionMedia *media; - gboolean need_session; GstRTSPUrl *url; /* the uri contains the stream number we added in the SDP config, which is @@ -851,8 +850,6 @@ handle_setup_request (GstRTSPClient * client, GstRTSPUrl * uri, /* get a handle to the configuration of the media in the session, this can * return NULL if this is a new url to manage in this session. */ media = gst_rtsp_session_get_media (session, uri); - - need_session = FALSE; } else { /* create a session if this fails we probably reached our session limit or * something. */ @@ -861,8 +858,6 @@ handle_setup_request (GstRTSPClient * client, GstRTSPUrl * uri, /* we need a new media configuration in this session */ media = NULL; - - need_session = TRUE; } /* we have no media, find one and manage it */ @@ -1220,7 +1215,7 @@ handle_request (GstRTSPClient * client, GstRTSPMessage * request) } /* we always try to parse the url first */ - if ((res = gst_rtsp_url_parse (uristr, &uri)) != GST_RTSP_OK) { + if (gst_rtsp_url_parse (uristr, &uri) != GST_RTSP_OK) { send_generic_response (client, GST_RTSP_STS_BAD_REQUEST, request); return; }