Commit 742120ba authored by Dan Hipschman's avatar Dan Hipschman Committed by Alexandre Julliard

qedit/tests: Add a partial test for IMediaDet_get_StreamMediaType.

parent b37ee801
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment