quartz: Do aggregation test for more video renderer interfaces.
This commit is contained in:
parent
bf20ca1dd4
commit
e8f69b5a42
|
@ -190,6 +190,20 @@ static void test_query_interface(void)
|
||||||
RELEASE_EXPECT(pVideoWindow, 1);
|
RELEASE_EXPECT(pVideoWindow, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void test_all_aggregations(void)
|
||||||
|
{
|
||||||
|
IID iids[] = {
|
||||||
|
IID_IMediaFilter, IID_IBaseFilter, IID_IBasicVideo, IID_IVideoWindow
|
||||||
|
};
|
||||||
|
int i;
|
||||||
|
|
||||||
|
for (i = 0; i < sizeof(iids) / sizeof(iids[0]); i++)
|
||||||
|
{
|
||||||
|
test_aggregation(CLSID_SystemClock, CLSID_VideoRenderer,
|
||||||
|
IID_IReferenceClock, iids[i]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
START_TEST(videorenderer)
|
START_TEST(videorenderer)
|
||||||
{
|
{
|
||||||
CoInitialize(NULL);
|
CoInitialize(NULL);
|
||||||
|
@ -197,8 +211,7 @@ START_TEST(videorenderer)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
test_query_interface();
|
test_query_interface();
|
||||||
test_aggregation(CLSID_SystemClock, CLSID_VideoRenderer,
|
test_all_aggregations();
|
||||||
IID_IReferenceClock, IID_IVideoWindow);
|
|
||||||
|
|
||||||
release_video_renderer();
|
release_video_renderer();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue