#include "wine/test.h"
#include "dshow.h"
Go to the source code of this file.
◆ COBJMACROS
◆ QI_SUCCEED
◆ RELEASE_EXPECT
Value: if (iface) { \
ok(
hr ==
num,
"IUnknown_Release should return %d, got %d\n",
num,
hr); \
}
Definition at line 30 of file videorenderer.c.
◆ create_video_renderer()
static int create_video_renderer |
( |
void |
| ) |
|
|
static |
Definition at line 37 of file videorenderer.c.
38{
40
44}
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
static IUnknown * pVideoRenderer
Referenced by START_TEST().
◆ release_video_renderer()
static void release_video_renderer |
( |
void |
| ) |
|
|
static |
◆ START_TEST()
START_TEST |
( |
videorenderer |
| ) |
|
Definition at line 153 of file videorenderer.c.
154{
157 return;
158
161
163
165}
HRESULT WINAPI CoInitialize(LPVOID lpReserved)
void WINAPI DECLSPEC_HOTPATCH CoUninitialize(void)
static void test_query_interface(void)
static void release_video_renderer(void)
static void test_basefilter(void)
static int create_video_renderer(void)
◆ test_basefilter()
Definition at line 105 of file videorenderer.c.
106{
112
115 {
116
117 skip(
"No IBaseFilter\n");
118 return;
119 }
120
123
124 hr= IBaseFilter_EnumPins(
base, &pin_enum);
125 ok(
hr ==
S_OK,
"hr = %08x and not S_OK\n",
hr);
126
129
130 hr = IEnumPins_Next(pin_enum, 2, pins,
NULL);
132
133 pins[0] = (void *)0xdead;
134 pins[1] = (void *)0xdeed;
135
136 hr = IEnumPins_Next(pin_enum, 2, pins, &
ref);
138 ok(pins[0] != (
void *)0xdead && pins[0] !=
NULL,
"pins[0] = %p\n", pins[0]);
139 if (pins[0] != (
void *)0xdead && pins[0] !=
NULL)
140 {
142 IPin_Release(pins[0]);
143 }
144
145 ok(pins[1] == (
void *)0xdeed,
"pins[1] = %p\n", pins[1]);
146
147 ref = IEnumPins_Release(pin_enum);
148 ok(
ref == 0,
"ref is %u and not 0!\n",
ref);
149
150 IBaseFilter_Release(
base);
151}
const GUID IID_IBaseFilter
static void test_pin(IPin *pin)
Referenced by START_TEST().
◆ test_pin()
Definition at line 89 of file videorenderer.c.
90{
92
93 IPin_QueryInterface(
pin, &IID_IMemInputPin, (
void **)&mpin);
94
95 ok(mpin !=
NULL,
"No IMemInputPin found!\n");
96 if (mpin)
97 {
98 ok(IMemInputPin_ReceiveCanBlock(mpin) ==
S_OK,
"Receive can't block for pin!\n");
99 ok(IMemInputPin_NotifyAllocator(mpin,
NULL, 0) ==
E_POINTER,
"NotifyAllocator likes a NULL pointer argument\n");
100 IMemInputPin_Release(mpin);
101 }
102
103}
Referenced by test_basefilter().
◆ test_query_interface()
static void test_query_interface |
( |
void |
| ) |
|
|
static |
Definition at line 54 of file videorenderer.c.
55{
58 IBasicVideo *pBasicVideo =
NULL;
61 IMediaPosition *pMediaPosition =
NULL;
65 IVideoWindow *pVideoWindow =
NULL;
66
82 }
87}
const GUID IID_IKsPropertySet
#define RELEASE_EXPECT(iface, num)
#define QI_SUCCEED(iface, riid, ppv)
Referenced by START_TEST().
◆ pVideoRenderer