gst_plugins_base/gst-libs/gst/rtsp/gstrtsptransport.c
branchRCL_3
changeset 30 7e817e7e631c
parent 29 567bb019e3e3
--- a/gst_plugins_base/gst-libs/gst/rtsp/gstrtsptransport.c	Tue Aug 31 15:30:33 2010 +0300
+++ b/gst_plugins_base/gst-libs/gst/rtsp/gstrtsptransport.c	Wed Sep 01 12:16:41 2010 +0100
@@ -544,7 +544,6 @@
 
     if ((tmp = rtsp_transport_ltrans_as_text (transport)) == NULL)
       goto invalid_transport;
-
     g_ptr_array_add (strs, g_ascii_strup (tmp, -1));
   }
 
@@ -602,36 +601,32 @@
   }
 
   /* add the port parameter */
-  if (transport->lower_transport != GST_RTSP_LOWER_TRANS_TCP) {
-    if (transport->trans == GST_RTSP_TRANS_RTP && transport->port.min >= 0) {
-      if (transport->port.min < 65536 && transport->port.max < 65536) {
-        g_ptr_array_add (strs, g_strdup (";port="));
-        g_ptr_array_add (strs, range_as_text (&transport->port));
-      } else
-        goto invalid_transport;
-    }
+  if (transport->trans == GST_RTSP_TRANS_RTP && transport->port.min >= 0) {
+    if (transport->port.min < 65536 && transport->port.max < 65536) {
+      g_ptr_array_add (strs, g_strdup (";port="));
+      g_ptr_array_add (strs, range_as_text (&transport->port));
+    } else
+      goto invalid_transport;
+  }
 
-    /* add the client_port parameter */
-    if (transport->trans == GST_RTSP_TRANS_RTP
-        && transport->client_port.min >= 0) {
-      if (transport->client_port.min < 65536
-          && transport->client_port.max < 65536) {
-        g_ptr_array_add (strs, g_strdup (";client_port="));
-        g_ptr_array_add (strs, range_as_text (&transport->client_port));
-      } else
-        goto invalid_transport;
-    }
+  /* add the client_port parameter */
+  if (transport->trans == GST_RTSP_TRANS_RTP && transport->client_port.min >= 0) {
+    if (transport->client_port.min < 65536 &&
+        transport->client_port.max < 65536) {
+      g_ptr_array_add (strs, g_strdup (";client_port="));
+      g_ptr_array_add (strs, range_as_text (&transport->client_port));
+    } else
+      goto invalid_transport;
+  }
 
-    /* add the server_port parameter */
-    if (transport->trans == GST_RTSP_TRANS_RTP
-        && transport->server_port.min >= 0) {
-      if (transport->server_port.min < 65536
-          && transport->server_port.max < 65536) {
-        g_ptr_array_add (strs, g_strdup (";server_port="));
-        g_ptr_array_add (strs, range_as_text (&transport->server_port));
-      } else
-        goto invalid_transport;
-    }
+  /* add the server_port parameter */
+  if (transport->trans == GST_RTSP_TRANS_RTP && transport->server_port.min >= 0) {
+    if (transport->server_port.min < 65536 &&
+        transport->server_port.max < 65536) {
+      g_ptr_array_add (strs, g_strdup (";server_port="));
+      g_ptr_array_add (strs, range_as_text (&transport->server_port));
+    } else
+      goto invalid_transport;
   }
 
   /* add the ssrc parameter */