changeset 8428:2090c9d9bb03

moved component lister up, as it messes up 'desc'
author arpi
date Wed, 11 Dec 2002 21:26:37 +0000
parents 878952081187
children e11a8f21d738
files libmpcodecs/vd_qtvideo.c
diffstat 1 files changed, 18 insertions(+), 17 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vd_qtvideo.c	Wed Dec 11 21:24:45 2002 +0000
+++ b/libmpcodecs/vd_qtvideo.c	Wed Dec 11 21:26:37 2002 +0000
@@ -127,6 +127,24 @@
 //    result=EnterMovies();
 //    printf("EnterMovies->%d\n",result);
 
+#if 0
+    memset(&desc,0,sizeof(desc));
+    while((prev=FindNextComponent(prev,&desc))){
+	ComponentDescription desc2;
+	unsigned char* c1=&desc2.componentType;
+	unsigned char* c2=&desc2.componentSubType;
+	memset(&desc2,0,sizeof(desc2));
+//	printf("juhee %p (%p)\n",prev,&desc);
+	GetComponentInfo(prev,&desc2,NULL,NULL,NULL);
+	printf("DESC: %c%c%c%c/%c%c%c%c [0x%X/0x%X] 0x%X\n",
+	    c1[3],c1[2],c1[1],c1[0],
+	    c2[3],c2[2],c2[1],c2[0],
+	    desc2.componentType,desc2.componentSubType,
+	    desc2.componentFlags);
+    }
+#endif
+
+
     memset(&desc,0,sizeof(desc));
     desc.componentType= (((unsigned char)'i')<<24)|
 			(((unsigned char)'m')<<16)|
@@ -146,23 +164,6 @@
     desc.componentFlagsMask=0;
 
     printf("Count = %d\n",CountComponents(&desc));
-#if 0
-    memset(&desc,0,sizeof(desc));
-    while((prev=FindNextComponent(prev,&desc))){
-	ComponentDescription desc2;
-	unsigned char* c1=&desc2.componentType;
-	unsigned char* c2=&desc2.componentSubType;
-	memset(&desc2,0,sizeof(desc2));
-	printf("juhee %p (%p)\n",prev,&desc);
-	GetComponentInfo(prev,&desc2,NULL,NULL,NULL);
-	printf("DESC: %c%c%c%c/%c%c%c%c [0x%X/0x%X] 0x%X\n",
-	    c1[3],c1[2],c1[1],c1[0],
-	    c2[3],c2[2],c2[1],c2[0],
-	    desc2.componentType,desc2.componentSubType,
-	    desc2.componentFlags);
-    }
-#endif
-
     prev=FindNextComponent(NULL,&desc);
     if(!prev){
 	printf("Cannot find requested component\n");