[MPlayer-cvslog] r29431 - trunk/vidix/ivtv_vid.c

diego subversion at mplayerhq.hu
Sun Jul 19 22:59:32 CEST 2009


Author: diego
Date: Sun Jul 19 22:59:32 2009
New Revision: 29431

Log:
Move some variable declarations up to avoid the warnings:
vidix/ivtv_vid.c: In function 'ivtv_probe':
vidix/ivtv_vid.c:305: warning: ISO C90 forbids mixed declarations and code
vidix/ivtv_vid.c: In function 'ivtv_query_fourcc':
vidix/ivtv_vid.c:405: warning: ISO C90 forbids mixed declarations and code

Modified:
   trunk/vidix/ivtv_vid.c

Modified: trunk/vidix/ivtv_vid.c
==============================================================================
--- trunk/vidix/ivtv_vid.c	Sun Jul 19 19:05:42 2009	(r29430)
+++ trunk/vidix/ivtv_vid.c	Sun Jul 19 22:59:32 2009	(r29431)
@@ -231,6 +231,8 @@ int ivtv_probe(int verbose, int force)
 	pciinfo_t lst[MAX_PCI_DEVICES];
 	int err = 0;
 	unsigned int i, num_pci = 0;
+	unsigned char yuv_device_number = 48, yuv_device = 48 + fb_number;
+	char yuv_device_name[] = "/dev/videoXXX\0";
 
 	if(verbose)
 		printf(IVTV_MSG"probe\n");
@@ -302,9 +304,6 @@ card_found:
 	}
 
 	/* Try to find YUV device */
-	unsigned char yuv_device_number = 48, yuv_device = 48 + fb_number;
-	char yuv_device_name[] = "/dev/videoXXX\0";
-
 	do {
 		sprintf(yuv_device_name, "/dev/video%u", yuv_device);
 		yuvdev = open(yuv_device_name, O_RDWR);
@@ -399,10 +398,11 @@ int ivtv_get_caps(vidix_capability_t *to
 
 int ivtv_query_fourcc(vidix_fourcc_t *to)
 {
+	int supports = 0;
+
 	if(ivtv_verbose)
 		printf(IVTV_MSG"query fourcc (%x)\n", to->fourcc);
 
-	int supports = 0;
 	switch(to->fourcc)
 	{
 	case IMGFMT_YV12:


More information about the MPlayer-cvslog mailing list