[MPlayer-cvslog] r36597 - trunk/libvo/vo_bl.c

reimar subversion at mplayerhq.hu
Sat Jan 18 13:51:35 CET 2014


Author: reimar
Date: Sat Jan 18 13:51:35 2014
New Revision: 36597

Log:
vo_bl: move assignment to a place where it actuall has an effect.

Modified:
   trunk/libvo/vo_bl.c

Modified: trunk/libvo/vo_bl.c
==============================================================================
--- trunk/libvo/vo_bl.c	Sat Jan 18 13:47:54 2014	(r36596)
+++ trunk/libvo/vo_bl.c	Sat Jan 18 13:51:35 2014	(r36597)
@@ -172,6 +172,7 @@ static int udp_init(bl_host_t *h) {
 	struct sockaddr_in addr;
 	struct hostent *dest;
 
+	h->fd = -1;
 	dest = gethostbyname(h->name);
 	if (!dest) {
 		mp_msg(MSGT_VO, MSGL_ERR,
@@ -179,7 +180,6 @@ static int udp_init(bl_host_t *h) {
 		return 1;
 	}
 
-	h->fd = -1;
 	memset(&addr, 0, sizeof(addr));
 	addr.sin_family = AF_INET;
 	addr.sin_port = htons(h->port);


More information about the MPlayer-cvslog mailing list