GList *tl = NULL;
GPtrArray *ta = NULL;
+ if (client->priv->ts_mode == WFD_TS_TCP) {
+ GST_ERROR_OBJECT (client, "Transport already TCP");
+ return res;
+ }
+
ta = g_ptr_array_new();
tl = gst_rtsp_stream_transport_filter (client->priv->stats.stream, NULL, NULL);
client->priv->transports = tl;
g_ptr_array_add (ta, tl->data);
- if (client->priv->ts_mode == WFD_TS_TCP) {
- GST_ERROR_OBJECT (client, "Transport already TCP");
- return res;
- }
-
client->priv->ts_mode = WFD_TS_TCP;
res = prepare_transport_switch_request (client, &request);
if (GST_RTSP_OK != res) {