mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-22 23:28:16 +00:00
sdpdemux: check if connections are available on media entry before get
Otherwise we trigger an assert.
This commit is contained in:
parent
f8eef0aba0
commit
0a128155b3
1 changed files with 9 additions and 2 deletions
|
@ -410,9 +410,16 @@ gst_sdp_demux_create_stream (GstSDPDemux * demux, GstSDPMessage * sdp, gint idx)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!(conn = gst_sdp_media_get_connection (media, 0))) {
|
|
||||||
if (!(conn = gst_sdp_message_get_connection (sdp)))
|
if (gst_sdp_media_connections_len (media) > 0) {
|
||||||
|
if (!(conn = gst_sdp_media_get_connection (media, 0))) {
|
||||||
|
/* We should not reach this based on the check above */
|
||||||
goto no_connection;
|
goto no_connection;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if (!(conn = gst_sdp_message_get_connection (sdp))) {
|
||||||
|
goto no_connection;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!conn->address)
|
if (!conn->address)
|
||||||
|
|
Loading…
Reference in a new issue