changeset 6336:9bd0ce3f9b64 libavformat

Check for udp_set_remote_url error. Fixes issue 1784 (hang with nonsense URL/no network available).
author reimar
date Wed, 28 Jul 2010 16:27:16 +0000
parents 5d04171d705b
children 8788871cbc99
files udp.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/udp.c	Wed Jul 28 09:26:15 2010 +0000
+++ b/udp.c	Wed Jul 28 16:27:16 2010 +0000
@@ -355,7 +355,8 @@
         if (flags & URL_WRONLY)
             goto fail;
     } 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))