Mercurial > mplayer.hg
changeset 36502:13e0edb7a23d
vo_bl: after close reset to NULL/-1.
author | reimar |
---|---|
date | Sat, 18 Jan 2014 12:53:54 +0000 |
parents | d0234dff2dc4 |
children | 2545bbe7d845 |
files | libvo/vo_bl.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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, "</blm>\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