comparison loader/dshow/DS_Filter.c @ 340:1f7c824033fb

less, and more informal printfs
author arpi_esp
date Wed, 11 Apr 2001 01:38:57 +0000
parents 1c3029be6713
children ac9bfa4a1005
comparison
equal deleted inserted replaced
339:e7e89cd4169f 340:1f7c824033fb
52 // printf("# factory->vt = %X\n",(unsigned int)factory->vt); 52 // printf("# factory->vt = %X\n",(unsigned int)factory->vt);
53 // printf("# factory->vt->CreateInstance = %X\n",(unsigned int)factory->vt->CreateInstance); 53 // printf("# factory->vt->CreateInstance = %X\n",(unsigned int)factory->vt->CreateInstance);
54 54
55 setup_FS_Segment(); 55 setup_FS_Segment();
56 56
57 printf("Calling factory->vt->CreateInstance()\n"); 57 // printf("Calling factory->vt->CreateInstance()\n");
58 result=factory->vt->CreateInstance(factory, 0, &IID_IUnknown, (void**)&object); 58 result=factory->vt->CreateInstance(factory, 0, &IID_IUnknown, (void**)&object);
59 printf("Calling factory->vt->Release()\n"); 59 // printf("Calling factory->vt->Release()\n");
60 60
61 // result=factory->vt->CreateInstance(factory, 0, &IID_IUnknown, (void**)&object); 61 // result=factory->vt->CreateInstance(factory, 0, &IID_IUnknown, (void**)&object);
62 62
63 printf("CreateInstance ok %x\n",result); 63 // printf("CreateInstance ok %x\n",result);
64 64
65 factory->vt->Release((IUnknown*)factory); 65 factory->vt->Release((IUnknown*)factory);
66 if(result || (!object)) throw FATAL("Class factory failure"); 66 if(result || (!object)) throw FATAL("Class factory failure");
67 67
68 result=object->vt->QueryInterface(object, &IID_IBaseFilter, (void**)&m_pFilter); 68 result=object->vt->QueryInterface(object, &IID_IBaseFilter, (void**)&m_pFilter);
75 if(result || (!enum_pins)) throw FATAL("Could not enumerate pins"); 75 if(result || (!enum_pins)) throw FATAL("Could not enumerate pins");
76 IPin* array[256]; 76 IPin* array[256];
77 ULONG fetched; 77 ULONG fetched;
78 enum_pins->vt->Reset(enum_pins); 78 enum_pins->vt->Reset(enum_pins);
79 result=enum_pins->vt->Next(enum_pins, (ULONG)256, (IPin**)array, &fetched); 79 result=enum_pins->vt->Next(enum_pins, (ULONG)256, (IPin**)array, &fetched);
80 printf("Pins enumeration returned %d pins, error is %x\n", fetched, result); 80 // printf("Pins enumeration returned %d pins, error is %x\n", fetched, result);
81 81
82 for(int i=0; i<fetched; i++) 82 for(int i=0; i<fetched; i++)
83 { 83 {
84 int direction=-1; 84 int direction=-1;
85 array[i]->vt->QueryDirection(array[i], (PIN_DIRECTION*)&direction); 85 array[i]->vt->QueryDirection(array[i], (PIN_DIRECTION*)&direction);