changeset 36505:294261f7e1b5

vo_bl: Move variables into blocks that use them.
author reimar
date Sat, 18 Jan 2014 13:07:40 +0000
parents edc2020f7bf4
children 0f2c90b69a12
files libvo/vo_bl.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_bl.c	Sat Jan 18 13:05:50 2014 +0000
+++ b/libvo/vo_bl.c	Sat Jan 18 13:07:40 2014 +0000
@@ -345,9 +345,8 @@
 }
 
 static int preinit(const char *arg) {
-	char *p, *q;
+	char *p;
 	int end = 0, i;
-	char txt[256];
 	if (!arg || strlen(arg) == 0) {
 		mp_msg(MSGT_VO, MSGL_ERR, "bl: subdevice must be given, example: -vo bl:arcade:host=localhost:2323\n");
 		return 1;
@@ -365,6 +364,7 @@
 			break;
 	}
 	if (i >= NO_BLS) {
+		char txt[256];
 		txt[0] = 0;
 		for (i = 0; i < NO_BLS; i++) {
 			int pos = strlen(txt);
@@ -392,7 +392,7 @@
 	p++;
 
 	while (!end) {
-		q = p + 5;
+		char *q = p + 5;
 		if (!strncmp(p, "file=", 5)) {
 			if (no_bl_files == BL_MAX_FILES) {
 				mp_msg(MSGT_VO, MSGL_ERR, "bl: maximum number of files reached (%d)\n", BL_MAX_FILES);