goto no_connection;
}
+ if (!conn->address)
+ goto no_connection;
+
stream->destination = conn->address;
stream->ttl = conn->ttl;
stream->multicast = is_multicast_address (stream->destination);
for (i = 0; i < n_streams; i++) {
stream = gst_sdp_demux_create_stream (demux, &sdp, i);
+ if (!stream)
+ continue;
+
GST_DEBUG_OBJECT (demux, "configuring transport for stream %p", stream);
if (!gst_sdp_demux_stream_configure_udp (demux, stream))
if (!gst_sdp_demux_stream_configure_udp_sink (demux, stream))
goto transport_failed;
}
+
+ if (!demux->streams)
+ goto no_streams;
}
/* set target state on session manager */
GST_SDP_STREAM_UNLOCK (demux);
return FALSE;
}
+no_streams:
+ {
+ gst_sdp_message_uninit (&sdp);
+ GST_ELEMENT_ERROR (demux, STREAM, TYPE_NOT_FOUND, (NULL),
+ ("No streams in SDP message."));
+ GST_SDP_STREAM_UNLOCK (demux);
+ return FALSE;
+ }
sent_redirect:
{
/* avoid hanging if redirect not handled */