ReactOS  0.4.14-dev-556-g4c5b21f
mpegsplit.c File Reference
#include "wine/test.h"
#include "dshow.h"
Include dependency graph for mpegsplit.c:

Go to the source code of this file.

Macros

#define COBJMACROS
 

Functions

static IUnknowncreate_mpeg_splitter (void)
 
static void test_query_interface (void)
 
 START_TEST (mpegsplit)
 

Macro Definition Documentation

◆ COBJMACROS

#define COBJMACROS

Definition at line 21 of file mpegsplit.c.

Function Documentation

◆ create_mpeg_splitter()

static IUnknown* create_mpeg_splitter ( void  )
static

Definition at line 26 of file mpegsplit.c.

27 {
28  IUnknown *mpeg_splitter = NULL;
29  HRESULT result = CoCreateInstance(&CLSID_MPEG1Splitter, NULL, CLSCTX_INPROC_SERVER,
30  &IID_IUnknown, (void **)&mpeg_splitter);
31  ok(S_OK == result, "got 0x%08x\n", result);
32  return mpeg_splitter;
33 }
smooth NULL
Definition: ftsmooth.c:416
LONG HRESULT
Definition: typedefs.h:77
const GUID IID_IUnknown
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
Definition: compobj.c:3325
#define S_OK
Definition: intsafe.h:59
#define ok(value,...)
Definition: atltest.h:57
GLuint64EXT * result
Definition: glext.h:11304

Referenced by test_query_interface().

◆ START_TEST()

START_TEST ( mpegsplit  )

Definition at line 51 of file mpegsplit.c.

52 {
54 
56 
58 }
smooth NULL
Definition: ftsmooth.c:416
void WINAPI DECLSPEC_HOTPATCH CoUninitialize(void)
Definition: compobj.c:2067
static void test_query_interface(void)
Definition: mpegsplit.c:35
HRESULT WINAPI CoInitialize(LPVOID lpReserved)
Definition: compobj.c:1964

◆ test_query_interface()

static void test_query_interface ( void  )
static

Definition at line 35 of file mpegsplit.c.

36 {
37  IUnknown *mpeg_splitter = create_mpeg_splitter();
38 
39  IAMStreamSelect *stream_select = NULL;
40  HRESULT result = IUnknown_QueryInterface(
41  mpeg_splitter, &IID_IAMStreamSelect, (void **)&stream_select);
42  ok(S_OK == result, "got 0x%08x\n", result);
43  if (S_OK == result)
44  {
45  IAMStreamSelect_Release(stream_select);
46  }
47 
48  IUnknown_Release(mpeg_splitter);
49 }
smooth NULL
Definition: ftsmooth.c:416
LONG HRESULT
Definition: typedefs.h:77
#define S_OK
Definition: intsafe.h:59
#define ok(value,...)
Definition: atltest.h:57
static IUnknown * create_mpeg_splitter(void)
Definition: mpegsplit.c:26
GLuint64EXT * result
Definition: glext.h:11304

Referenced by START_TEST().