rtsp-client: fix unused-but-set-variable compiler warning
authorTim-Philipp Müller <tim@centricular.net>
Sat, 17 Nov 2012 00:03:42 +0000 (00:03 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Sat, 17 Nov 2012 00:03:42 +0000 (00:03 +0000)
rtsp-client.c:1260:21: error: variable 'protocols' set but not used

gst/rtsp-server/rtsp-client.c

index f353a79..9389160 100644 (file)
@@ -1257,7 +1257,6 @@ create_sdp (GstRTSPClient * client, GstRTSPMedia * media)
   GstSDPMessage *sdp;
   GstSDPInfo info;
   const gchar *proto;
-  GstRTSPLowerTrans protocols;
 
   gst_sdp_message_new (&sdp);
 
@@ -1280,7 +1279,6 @@ create_sdp (GstRTSPClient * client, GstRTSPMedia * media)
   gst_sdp_message_add_attribute (sdp, "control", "*");
 
   info.server_proto = proto;
-  protocols = gst_rtsp_media_get_protocols (media);
   info.server_ip = g_strdup (client->server_ip);
 
   /* create an SDP for the media object */