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

reimar subversion at mplayerhq.hu
Sat Jan 18 13:53:54 CET 2014


Author: reimar
Date: Sat Jan 18 13:53:54 2014
New Revision: 36598

Log:
vo_bl: after close reset to NULL/-1.

Modified:
   trunk/libvo/vo_bl.c

Modified: trunk/libvo/vo_bl.c
==============================================================================
--- trunk/libvo/vo_bl.c	Sat Jan 18 13:51:35 2014	(r36597)
+++ trunk/libvo/vo_bl.c	Sat Jan 18 13:53:54 2014	(r36598)
@@ -165,6 +165,7 @@ static void bml_write_frame(bl_file_t *f
 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 @@ static int udp_init(bl_host_t *h) {
 		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_send(bl_host_t *h) {
 
 static void udp_close(bl_host_t *h) {
 	close(h->fd);
+	h->fd = -1;
 }
 
 #define NO_BLS 3


More information about the MPlayer-cvslog mailing list