mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
rtmpsrc: Do some sanity checks before accepting an URI
Fixes bug #622369.
This commit is contained in:
parent
9334e8733c
commit
c15487961b
1 changed files with 2 additions and 1 deletions
|
@ -213,7 +213,8 @@ gst_rtmp_src_uri_set_uri (GstURIHandler * handler, const gchar * uri)
|
|||
unsigned int port;
|
||||
AVal playpath, app;
|
||||
|
||||
if (!RTMP_ParseURL (uri, &protocol, &host, &port, &playpath, &app)) {
|
||||
if (!RTMP_ParseURL (uri, &protocol, &host, &port, &playpath, &app) ||
|
||||
!host.av_len || !playpath.av_len) {
|
||||
GST_ERROR_OBJECT (src, "Failed to parse URI %s", uri);
|
||||
return FALSE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue