Commit e9ad430a authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

quartz: Vend CLSID_NullRenderer from qedit.

parent 96eb82f7
...@@ -4,6 +4,7 @@ IMPORTS = strmiids strmbase uuid oleaut32 ole32 advapi32 ...@@ -4,6 +4,7 @@ IMPORTS = strmiids strmbase uuid oleaut32 ole32 advapi32
C_SRCS = \ C_SRCS = \
main.c \ main.c \
mediadet.c \ mediadet.c \
nullrenderer.c \
samplegrabber.c \ samplegrabber.c \
timeline.c timeline.c
......
...@@ -60,6 +60,7 @@ static const struct object_creation_info object_creation[] = ...@@ -60,6 +60,7 @@ static const struct object_creation_info object_creation[] =
{ {
{ &CLSID_AMTimeline, AMTimeline_create }, { &CLSID_AMTimeline, AMTimeline_create },
{ &CLSID_MediaDet, MediaDet_create }, { &CLSID_MediaDet, MediaDet_create },
{ &CLSID_NullRenderer, NullRenderer_create },
{ &CLSID_SampleGrabber, SampleGrabber_create }, { &CLSID_SampleGrabber, SampleGrabber_create },
}; };
......
/* /*
* Null Renderer (Promiscuous, not rendering anything at all!) * Null renderer filter
* *
* Copyright 2004 Christian Costa * Copyright 2004 Christian Costa
* Copyright 2008 Maarten Lankhorst * Copyright 2008 Maarten Lankhorst
...@@ -19,25 +19,12 @@ ...@@ -19,25 +19,12 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#include "config.h" #define COBJMACROS
#include "quartz_private.h"
#include "pin.h"
#include "uuids.h"
#include "vfwmsgs.h"
#include "amvideo.h"
#include "windef.h"
#include "winbase.h"
#include "dshow.h" #include "dshow.h"
#include "evcode.h"
#include "strmif.h"
#include "ddraw.h"
#include "wine/unicode.h"
#include "wine/debug.h" #include "wine/debug.h"
#include "wine/strmbase.h"
WINE_DEFAULT_DEBUG_CHANNEL(quartz); WINE_DEFAULT_DEBUG_CHANNEL(qedit);
typedef struct NullRendererImpl typedef struct NullRendererImpl
{ {
...@@ -89,7 +76,7 @@ static HRESULT WINAPI NullRendererInner_QueryInterface(IUnknown *iface, REFIID r ...@@ -89,7 +76,7 @@ static HRESULT WINAPI NullRendererInner_QueryInterface(IUnknown *iface, REFIID r
{ {
NullRendererImpl *This = impl_from_IUnknown(iface); NullRendererImpl *This = impl_from_IUnknown(iface);
TRACE("(%p/%p)->(%s, %p)\n", This, iface, qzdebugstr_guid(riid), ppv); TRACE("filter %p, iid %s, out %p.\n", This, debugstr_guid(riid), ppv);
*ppv = NULL; *ppv = NULL;
...@@ -112,7 +99,7 @@ static HRESULT WINAPI NullRendererInner_QueryInterface(IUnknown *iface, REFIID r ...@@ -112,7 +99,7 @@ static HRESULT WINAPI NullRendererInner_QueryInterface(IUnknown *iface, REFIID r
} }
if (!IsEqualIID(riid, &IID_IPin) && !IsEqualIID(riid, &IID_IVideoWindow)) if (!IsEqualIID(riid, &IID_IPin) && !IsEqualIID(riid, &IID_IVideoWindow))
FIXME("No interface for %s!\n", qzdebugstr_guid(riid)); FIXME("%s not implemented, returning E_NOINTERFACE.\n", debugstr_guid(riid));
return E_NOINTERFACE; return E_NOINTERFACE;
} }
......
...@@ -33,6 +33,13 @@ coclass AMTimeline { interface IAMTimeline; interface IPersistStream; interface ...@@ -33,6 +33,13 @@ coclass AMTimeline { interface IAMTimeline; interface IPersistStream; interface
coclass MediaDet { interface IMediaDet; } coclass MediaDet { interface IMediaDet; }
[ [
helpstring("Null Renderer"),
threading(both),
uuid(c1f400a4-3f08-11d3-9f0b-006008039e37)
]
coclass NullRenderer { interface IBaseFilter; }
[
helpstring("Sample Grabber"), helpstring("Sample Grabber"),
threading(both), threading(both),
uuid(c1f400a0-3f08-11d3-9f0b-006008039e37) uuid(c1f400a0-3f08-11d3-9f0b-006008039e37)
......
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
HRESULT AMTimeline_create(IUnknown *pUnkOuter, LPVOID *ppObj) DECLSPEC_HIDDEN; HRESULT AMTimeline_create(IUnknown *pUnkOuter, LPVOID *ppObj) DECLSPEC_HIDDEN;
HRESULT MediaDet_create(IUnknown *pUnkOuter, LPVOID *ppObj) DECLSPEC_HIDDEN; HRESULT MediaDet_create(IUnknown *pUnkOuter, LPVOID *ppObj) DECLSPEC_HIDDEN;
HRESULT NullRenderer_create(IUnknown *outer, void **out) DECLSPEC_HIDDEN;
HRESULT SampleGrabber_create(IUnknown *pUnkOuter, LPVOID *ppObj) DECLSPEC_HIDDEN; HRESULT SampleGrabber_create(IUnknown *pUnkOuter, LPVOID *ppObj) DECLSPEC_HIDDEN;
#endif /* __QEDIT_PRIVATE_INCLUDED__ */ #endif /* __QEDIT_PRIVATE_INCLUDED__ */
...@@ -16,7 +16,6 @@ C_SRCS = \ ...@@ -16,7 +16,6 @@ C_SRCS = \
main.c \ main.c \
memallocator.c \ memallocator.c \
mpegsplit.c \ mpegsplit.c \
nullrenderer.c \
parser.c \ parser.c \
pin.c \ pin.c \
regsvr.c \ regsvr.c \
......
...@@ -74,7 +74,6 @@ static const struct object_creation_info object_creation[] = ...@@ -74,7 +74,6 @@ static const struct object_creation_info object_creation[] =
{ &CLSID_AviSplitter, AVISplitter_create }, { &CLSID_AviSplitter, AVISplitter_create },
{ &CLSID_MPEG1Splitter, MPEGSplitter_create }, { &CLSID_MPEG1Splitter, MPEGSplitter_create },
{ &CLSID_VideoRenderer, VideoRenderer_create }, { &CLSID_VideoRenderer, VideoRenderer_create },
{ &CLSID_NullRenderer, NullRenderer_create },
{ &CLSID_VideoMixingRenderer, VMR7Impl_create }, { &CLSID_VideoMixingRenderer, VMR7Impl_create },
{ &CLSID_VideoMixingRenderer9, VMR9Impl_create }, { &CLSID_VideoMixingRenderer9, VMR9Impl_create },
{ &CLSID_VideoRendererDefault, VideoRendererDefault_create }, { &CLSID_VideoRendererDefault, VideoRendererDefault_create },
......
...@@ -59,7 +59,6 @@ HRESULT MPEGSplitter_create(IUnknown * pUnkOuter, LPVOID * ppv) DECLSPEC_HIDDEN; ...@@ -59,7 +59,6 @@ HRESULT MPEGSplitter_create(IUnknown * pUnkOuter, LPVOID * ppv) DECLSPEC_HIDDEN;
HRESULT AVIDec_create(IUnknown * pUnkOuter, LPVOID * ppv) DECLSPEC_HIDDEN; HRESULT AVIDec_create(IUnknown * pUnkOuter, LPVOID * ppv) DECLSPEC_HIDDEN;
HRESULT DSoundRender_create(IUnknown * pUnkOuter, LPVOID * ppv) DECLSPEC_HIDDEN; HRESULT DSoundRender_create(IUnknown * pUnkOuter, LPVOID * ppv) DECLSPEC_HIDDEN;
HRESULT VideoRenderer_create(IUnknown * pUnkOuter, LPVOID * ppv) DECLSPEC_HIDDEN; HRESULT VideoRenderer_create(IUnknown * pUnkOuter, LPVOID * ppv) DECLSPEC_HIDDEN;
HRESULT NullRenderer_create(IUnknown * pUnkOuter, LPVOID * ppv) DECLSPEC_HIDDEN;
HRESULT VideoRendererDefault_create(IUnknown * pUnkOuter, LPVOID * ppv) DECLSPEC_HIDDEN; HRESULT VideoRendererDefault_create(IUnknown * pUnkOuter, LPVOID * ppv) DECLSPEC_HIDDEN;
HRESULT QUARTZ_CreateSystemClock(IUnknown * pUnkOuter, LPVOID * ppv) DECLSPEC_HIDDEN; HRESULT QUARTZ_CreateSystemClock(IUnknown * pUnkOuter, LPVOID * ppv) DECLSPEC_HIDDEN;
HRESULT ACMWrapper_create(IUnknown * pUnkOuter, LPVOID * ppv) DECLSPEC_HIDDEN; HRESULT ACMWrapper_create(IUnknown * pUnkOuter, LPVOID * ppv) DECLSPEC_HIDDEN;
......
...@@ -120,13 +120,6 @@ coclass DSoundRender { interface IBaseFilter; } ...@@ -120,13 +120,6 @@ coclass DSoundRender { interface IBaseFilter; }
coclass AudioRender { interface IBaseFilter; } coclass AudioRender { interface IBaseFilter; }
[ [
helpstring("Null Renderer"),
threading(both),
uuid(c1f400a4-3f08-11d3-9f0b-006008039e37)
]
coclass NullRenderer { interface IBaseFilter; }
[
helpstring("Video Renderer"), helpstring("Video Renderer"),
threading(both), threading(both),
uuid(70e102b0-5556-11ce-97c0-00aa0055595a) uuid(70e102b0-5556-11ce-97c0-00aa0055595a)
......
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