comparison loader/dmo/dmo.c @ 37193:82a15e343f94

dmo: print messages to stderr instead of stdout.
author reimar
date Sat, 27 Sep 2014 18:44:47 +0000
parents 277b0288b0f9
children
comparison
equal deleted inserted replaced
37192:277b0288b0f9 37193:82a15e343f94
86 if (hr == 0) 86 if (hr == 0)
87 { 87 {
88 /* query for some extra available interface */ 88 /* query for some extra available interface */
89 HRESULT r = object->vt->QueryInterface(object, &IID_IMediaObjectInPlace, (void*)&This->m_pInPlace); 89 HRESULT r = object->vt->QueryInterface(object, &IID_IMediaObjectInPlace, (void*)&This->m_pInPlace);
90 if (r == 0 && This->m_pInPlace) 90 if (r == 0 && This->m_pInPlace)
91 printf("DMO dll supports InPlace - PLEASE REPORT to developer\n"); 91 fprintf(stderr, "DMO dll supports InPlace - PLEASE REPORT to developer\n");
92 r = object->vt->QueryInterface(object, &IID_IDMOVideoOutputOptimizations, (void*)&This->m_pOptim); 92 r = object->vt->QueryInterface(object, &IID_IDMOVideoOutputOptimizations, (void*)&This->m_pOptim);
93 if (r == 0 && This->m_pOptim) 93 if (r == 0 && This->m_pOptim)
94 { 94 {
95 unsigned long flags; 95 unsigned long flags;
96 r = This->m_pOptim->vt->QueryOperationModePreferences(This->m_pOptim, 0, &flags); 96 r = This->m_pOptim->vt->QueryOperationModePreferences(This->m_pOptim, 0, &flags);
97 printf("DMO dll supports VO Optimizations %ld %lx\n", r, flags); 97 fprintf(stderr, "DMO dll supports VO Optimizations %ld %lx\n", r, flags);
98 if (flags & DMO_VOSF_NEEDS_PREVIOUS_SAMPLE) 98 if (flags & DMO_VOSF_NEEDS_PREVIOUS_SAMPLE)
99 printf("DMO dll might use previous sample when requested\n"); 99 fprintf(stderr, "DMO dll might use previous sample when requested\n");
100 } 100 }
101 } 101 }
102 object->vt->Release((IUnknown*)object); 102 object->vt->Release((IUnknown*)object);
103 if (hr || !This->m_pMedia) 103 if (hr || !This->m_pMedia)
104 { 104 {
157 break; 157 break;
158 } 158 }
159 if (em) 159 if (em)
160 { 160 {
161 DMO_Filter_Destroy(This); 161 DMO_Filter_Destroy(This);
162 printf("IMediaObject ERROR: %p %s (0x%lx : %ld)\n", em, em ? em : "", hr, hr); 162 fprintf(stderr, "IMediaObject ERROR: %p %s (0x%lx : %ld)\n", em, em ? em : "", hr, hr);
163 This = 0; 163 This = 0;
164 } 164 }
165 return This; 165 return This;
166 } 166 }