Check for udp_set_remote_url error.
Fixes issue 1784 (hang with nonsense URL/no network available). Originally committed as revision 24575 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
78db142acb
commit
8250561149
@ -355,7 +355,8 @@ static int udp_open(URLContext *h, const char *uri, int flags)
|
|||||||
if (flags & URL_WRONLY)
|
if (flags & URL_WRONLY)
|
||||||
goto fail;
|
goto fail;
|
||||||
} else {
|
} else {
|
||||||
udp_set_remote_url(h, uri);
|
if (udp_set_remote_url(h, uri) < 0)
|
||||||
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (s->is_multicast && !(h->flags & URL_WRONLY))
|
if (s->is_multicast && !(h->flags & URL_WRONLY))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user