From 742120ba94b2b9d58a9a0d5bd3eaa2b84434d21e Mon Sep 17 00:00:00 2001 From: Dan Hipschman Date: Fri, 4 Apr 2008 16:01:27 -0700 Subject: [PATCH] qedit/tests: Add a partial test for IMediaDet_get_StreamMediaType. --- dlls/qedit/tests/mediadet.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dlls/qedit/tests/mediadet.c b/dlls/qedit/tests/mediadet.c index 0ec9458c82f..0870fd08065 100644 --- a/dlls/qedit/tests/mediadet.c +++ b/dlls/qedit/tests/mediadet.c @@ -22,6 +22,8 @@ #define COBJMACROS +#include "ole2.h" +#include "uuids.h" #include "wine/test.h" #include "qedit.h" @@ -84,6 +86,7 @@ static void test_mediadet(void) BSTR filename = NULL; long nstrms = 0; long strm; + AM_MEDIA_TYPE mt; hr = CoCreateInstance(&CLSID_MediaDet, NULL, CLSCTX_INPROC_SERVER, &IID_IMediaDet, (LPVOID*)&pM); @@ -114,6 +117,12 @@ static void test_mediadet(void) todo_wine ok(hr == S_OK, "IMediaDet_get_CurrentStream\n"); todo_wine ok(strm == 0, "IMediaDet_get_CurrentStream\n"); + ZeroMemory(&mt, sizeof mt); + hr = IMediaDet_get_StreamMediaType(pM, &mt); + todo_wine ok(hr == S_OK, "IMediaDet_get_StreamMediaType\n"); + todo_wine ok(IsEqualGUID(&mt.majortype, &MEDIATYPE_Video), + "IMediaDet_get_StreamMediaType\n"); + hr = IMediaDet_Release(pM); ok(hr == 0, "IMediaDet_Release returned: %x\n", hr);