Mercurial > mplayer.hg
comparison loader/dshow/DS_Filter.c @ 7386:174e2a58b4cd
avifile sync - 95% cosmetics 5% bug
author | arpi |
---|---|
date | Fri, 13 Sep 2002 19:43:17 +0000 |
parents | 4b0dd1ff6a20 |
children | c4434bdf6e51 |
comparison
equal
deleted
inserted
replaced
7385:e2fcdd7608b1 | 7386:174e2a58b4cd |
---|---|
1 #include "DS_Filter.h" | 1 #include "DS_Filter.h" |
2 #include "driver.h" | 2 #include "driver.h" |
3 #include "com.h" | 3 #include "com.h" |
4 #include "module.h" | |
5 #include <stdio.h> | 4 #include <stdio.h> |
6 #include <string.h> | 5 #include <string.h> |
6 #include <stdlib.h> | |
7 #include "win32.h" // printf macro | |
7 | 8 |
8 typedef long STDCALL (*GETCLASS) (const GUID*, const GUID*, void**); | 9 typedef long STDCALL (*GETCLASS) (const GUID*, const GUID*, void**); |
9 | 10 |
10 //extern "C" STDCALL void* GetProcAddress(int, const char*); // STDCALL has to be first NetBSD | 11 //extern "C" STDCALL void* GetProcAddress(int, const char*); // STDCALL has to be first NetBSD |
11 | 12 |
143 } | 144 } |
144 result = object->vt->QueryInterface(object, &IID_IBaseFilter, (void**)&This->m_pFilter); | 145 result = object->vt->QueryInterface(object, &IID_IBaseFilter, (void**)&This->m_pFilter); |
145 object->vt->Release((IUnknown*)object); | 146 object->vt->Release((IUnknown*)object); |
146 if (result || !This->m_pFilter) | 147 if (result || !This->m_pFilter) |
147 { | 148 { |
148 em = "object does not have IBaseFilter interface"; | 149 em = "object does not provide IBaseFilter interface"; |
149 break; | 150 break; |
150 } | 151 } |
151 // enumerate pins | 152 // enumerate pins |
152 result = This->m_pFilter->vt->EnumPins(This->m_pFilter, &enum_pins); | 153 result = This->m_pFilter->vt->EnumPins(This->m_pFilter, &enum_pins); |
153 if (result || !enum_pins) | 154 if (result || !enum_pins) |
226 { | 227 { |
227 em = "could not connect to output pin"; | 228 em = "could not connect to output pin"; |
228 break; | 229 break; |
229 } | 230 } |
230 | 231 |
231 printf("Using DirectShow codec: %s\n", dllname); | |
232 init++; | 232 init++; |
233 break; | 233 break; |
234 } | 234 } |
235 | 235 |
236 if (!init) | 236 if (!init) |