Mercurial > mplayer.hg
changeset 36501:d0234dff2dc4
vo_bl: move assignment to a place where it actuall has an effect.
author | reimar |
---|---|
date | Sat, 18 Jan 2014 12:51:35 +0000 |
parents | 21d4dd6f5996 |
children | 13e0edb7a23d |
files | libvo/vo_bl.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/vo_bl.c Sat Jan 18 12:47:54 2014 +0000 +++ b/libvo/vo_bl.c Sat Jan 18 12:51:35 2014 +0000 @@ -172,6 +172,7 @@ 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 @@ return 1; } - h->fd = -1; memset(&addr, 0, sizeof(addr)); addr.sin_family = AF_INET; addr.sin_port = htons(h->port);