# HG changeset patch # User reimar # Date 1390049634 0 # Node ID 13e0edb7a23d0972b49a415c6edc7d40aae56609 # Parent d0234dff2dc41c2627515de1da64f34833b6709a vo_bl: after close reset to NULL/-1. diff -r d0234dff2dc4 -r 13e0edb7a23d libvo/vo_bl.c --- a/libvo/vo_bl.c Sat Jan 18 12:51:35 2014 +0000 +++ b/libvo/vo_bl.c Sat Jan 18 12:53:54 2014 +0000 @@ -165,6 +165,7 @@ static void bml_close(bl_file_t *f) { fprintf(f->fp, "\n"); fclose(f->fp); + f->fp = NULL; } /* Blinkenlights UDP protocol */ @@ -196,6 +197,7 @@ mp_msg(MSGT_VO, MSGL_ERR, "couldn't connect socket for %s\n", h->name); close(h->fd); + h->fd = -1; return 1; } return 0; @@ -208,6 +210,7 @@ static void udp_close(bl_host_t *h) { close(h->fd); + h->fd = -1; } #define NO_BLS 3