diff udp.c @ 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 ccb05424c391
children 1e6ebac87d44
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))