diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c index 3048bd2a34..59302b1c41 100644 --- a/gst/rtsp/gstrtspsrc.c +++ b/gst/rtsp/gstrtspsrc.c @@ -808,7 +808,10 @@ static void gst_rtspsrc_do_stream_connection (GstRTSPSrc * src, GstRTSPStream * stream, const GstSDPConnection * conn) { - if (strcmp (conn->nettype, "IN") != 0) + if (conn->nettype == NULL || strcmp (conn->nettype, "IN") != 0) + return; + + if (conn->addrtype == NULL) return; /* check for IPV6 */