Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
32e93f30
Commit
32e93f30
authored
May 18, 2005
by
Maarten Lankhorst
Committed by
Alexandre Julliard
May 18, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed SetFilterGraph failure.
Added debug info. Added ObjectRefCount info for DllCanUnloadNow.
parent
90dd7f06
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
18 deletions
+16
-18
capturegraph.c
dlls/qcap/capturegraph.c
+16
-18
No files found.
dlls/qcap/capturegraph.c
View file @
32e93f30
...
@@ -47,9 +47,7 @@
...
@@ -47,9 +47,7 @@
#include "wine/unicode.h"
#include "wine/unicode.h"
#include "wine/debug.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
quartz
);
WINE_DEFAULT_DEBUG_CHANNEL
(
qcap
);
static
const
WCHAR
wcsInputPinName
[]
=
{
'i'
,
'n'
,
'p'
,
'u'
,
't'
,
' '
,
'p'
,
'i'
,
'n'
,
0
};
/***********************************************************************
/***********************************************************************
* ICaptureGraphBuilder & ICaptureGraphBuilder2 implementation
* ICaptureGraphBuilder & ICaptureGraphBuilder2 implementation
...
@@ -104,6 +102,7 @@ IUnknown * CALLBACK QCAP_createCaptureGraphBuilder2(IUnknown *pUnkOuter,
...
@@ -104,6 +102,7 @@ IUnknown * CALLBACK QCAP_createCaptureGraphBuilder2(IUnknown *pUnkOuter,
pCapture
->
mygraph
=
NULL
;
pCapture
->
mygraph
=
NULL
;
InitializeCriticalSection
(
&
pCapture
->
csFilter
);
InitializeCriticalSection
(
&
pCapture
->
csFilter
);
*
phr
=
S_OK
;
*
phr
=
S_OK
;
ObjectRefCount
(
TRUE
);
}
}
return
(
IUnknown
*
)
pCapture
;
return
(
IUnknown
*
)
pCapture
;
}
}
...
@@ -163,10 +162,9 @@ fnCaptureGraphBuilder2_Release(ICaptureGraphBuilder2 * iface)
...
@@ -163,10 +162,9 @@ fnCaptureGraphBuilder2_Release(ICaptureGraphBuilder2 * iface)
if
(
This
->
mygraph
!=
NULL
)
if
(
This
->
mygraph
!=
NULL
)
IGraphBuilder_Release
((
IGraphBuilder
*
)
This
->
mygraph
);
IGraphBuilder_Release
((
IGraphBuilder
*
)
This
->
mygraph
);
CoTaskMemFree
(
This
);
CoTaskMemFree
(
This
);
return
0
;
ObjectRefCount
(
FALSE
)
;
}
}
else
return
ref
;
return
ref
;
}
}
static
HRESULT
WINAPI
static
HRESULT
WINAPI
...
@@ -181,7 +179,7 @@ fnCaptureGraphBuilder2_SetFilterGraph(ICaptureGraphBuilder2 * iface,
...
@@ -181,7 +179,7 @@ fnCaptureGraphBuilder2_SetFilterGraph(ICaptureGraphBuilder2 * iface,
TRACE
(
"(%p/%p)->(%p)
\n
"
,
This
,
iface
,
pfg
);
TRACE
(
"(%p/%p)->(%p)
\n
"
,
This
,
iface
,
pfg
);
if
(
!
This
->
mygraph
)
if
(
This
->
mygraph
)
return
E_UNEXPECTED
;
return
E_UNEXPECTED
;
if
(
!
pfg
)
if
(
!
pfg
)
...
@@ -364,7 +362,7 @@ fnCaptureGraphBuilder_QueryInterface(ICaptureGraphBuilder * iface,
...
@@ -364,7 +362,7 @@ fnCaptureGraphBuilder_QueryInterface(ICaptureGraphBuilder * iface,
REFIID
riid
,
LPVOID
*
ppv
)
REFIID
riid
,
LPVOID
*
ppv
)
{
{
_ICOM_THIS_From_ICaptureGraphBuilder
(
CaptureGraphImpl
,
iface
);
_ICOM_THIS_From_ICaptureGraphBuilder
(
CaptureGraphImpl
,
iface
);
TRACE
(
"%p --> Forwarding to v2 (%p)
\n
"
,
iface
,
This
);
return
IUnknown_QueryInterface
(
_ICaptureGraphBuilder2_
(
This
),
riid
,
ppv
);
return
IUnknown_QueryInterface
(
_ICaptureGraphBuilder2_
(
This
),
riid
,
ppv
);
}
}
...
@@ -372,7 +370,7 @@ static ULONG WINAPI
...
@@ -372,7 +370,7 @@ static ULONG WINAPI
fnCaptureGraphBuilder_AddRef
(
ICaptureGraphBuilder
*
iface
)
fnCaptureGraphBuilder_AddRef
(
ICaptureGraphBuilder
*
iface
)
{
{
_ICOM_THIS_From_ICaptureGraphBuilder
(
CaptureGraphImpl
,
iface
);
_ICOM_THIS_From_ICaptureGraphBuilder
(
CaptureGraphImpl
,
iface
);
TRACE
(
"%p --> Forwarding to v2 (%p)
\n
"
,
iface
,
This
);
return
IUnknown_AddRef
(
_ICaptureGraphBuilder2_
(
This
));
return
IUnknown_AddRef
(
_ICaptureGraphBuilder2_
(
This
));
}
}
...
@@ -380,7 +378,7 @@ static ULONG WINAPI
...
@@ -380,7 +378,7 @@ static ULONG WINAPI
fnCaptureGraphBuilder_Release
(
ICaptureGraphBuilder
*
iface
)
fnCaptureGraphBuilder_Release
(
ICaptureGraphBuilder
*
iface
)
{
{
_ICOM_THIS_From_ICaptureGraphBuilder
(
CaptureGraphImpl
,
iface
);
_ICOM_THIS_From_ICaptureGraphBuilder
(
CaptureGraphImpl
,
iface
);
TRACE
(
"%p --> Forwarding to v2 (%p)
\n
"
,
iface
,
This
);
return
IUnknown_Release
(
_ICaptureGraphBuilder2_
(
This
));
return
IUnknown_Release
(
_ICaptureGraphBuilder2_
(
This
));
}
}
...
@@ -389,7 +387,7 @@ fnCaptureGraphBuilder_SetFiltergraph(ICaptureGraphBuilder * iface,
...
@@ -389,7 +387,7 @@ fnCaptureGraphBuilder_SetFiltergraph(ICaptureGraphBuilder * iface,
IGraphBuilder
*
pfg
)
IGraphBuilder
*
pfg
)
{
{
_ICOM_THIS_From_ICaptureGraphBuilder
(
CaptureGraphImpl
,
iface
);
_ICOM_THIS_From_ICaptureGraphBuilder
(
CaptureGraphImpl
,
iface
);
TRACE
(
"%p --> Forwarding to v2 (%p)
\n
"
,
iface
,
This
);
return
ICaptureGraphBuilder2_SetFiltergraph
(
_ICaptureGraphBuilder2_
(
This
),
pfg
);
return
ICaptureGraphBuilder2_SetFiltergraph
(
_ICaptureGraphBuilder2_
(
This
),
pfg
);
}
}
...
@@ -398,7 +396,7 @@ fnCaptureGraphBuilder_GetFiltergraph(ICaptureGraphBuilder * iface,
...
@@ -398,7 +396,7 @@ fnCaptureGraphBuilder_GetFiltergraph(ICaptureGraphBuilder * iface,
IGraphBuilder
**
pfg
)
IGraphBuilder
**
pfg
)
{
{
_ICOM_THIS_From_ICaptureGraphBuilder
(
CaptureGraphImpl
,
iface
);
_ICOM_THIS_From_ICaptureGraphBuilder
(
CaptureGraphImpl
,
iface
);
TRACE
(
"%p --> Forwarding to v2 (%p)
\n
"
,
iface
,
This
);
return
ICaptureGraphBuilder2_GetFiltergraph
(
_ICaptureGraphBuilder2_
(
This
),
pfg
);
return
ICaptureGraphBuilder2_GetFiltergraph
(
_ICaptureGraphBuilder2_
(
This
),
pfg
);
}
}
...
@@ -408,7 +406,7 @@ fnCaptureGraphBuilder_SetOutputFileName(ICaptureGraphBuilder * iface,
...
@@ -408,7 +406,7 @@ fnCaptureGraphBuilder_SetOutputFileName(ICaptureGraphBuilder * iface,
IBaseFilter
**
ppf
,
IFileSinkFilter
**
ppSink
)
IBaseFilter
**
ppf
,
IFileSinkFilter
**
ppSink
)
{
{
_ICOM_THIS_From_ICaptureGraphBuilder
(
CaptureGraphImpl
,
iface
);
_ICOM_THIS_From_ICaptureGraphBuilder
(
CaptureGraphImpl
,
iface
);
TRACE
(
"%p --> Forwarding to v2 (%p)
\n
"
,
iface
,
This
);
return
ICaptureGraphBuilder2_SetOutputFileName
(
_ICaptureGraphBuilder2_
(
This
),
return
ICaptureGraphBuilder2_SetOutputFileName
(
_ICaptureGraphBuilder2_
(
This
),
pType
,
lpstrFile
,
ppf
,
ppSink
);
pType
,
lpstrFile
,
ppf
,
ppSink
);
}
}
...
@@ -419,7 +417,7 @@ fnCaptureGraphBuilder_FindInterface(ICaptureGraphBuilder * iface,
...
@@ -419,7 +417,7 @@ fnCaptureGraphBuilder_FindInterface(ICaptureGraphBuilder * iface,
REFIID
riid
,
void
**
ppint
)
REFIID
riid
,
void
**
ppint
)
{
{
_ICOM_THIS_From_ICaptureGraphBuilder
(
CaptureGraphImpl
,
iface
);
_ICOM_THIS_From_ICaptureGraphBuilder
(
CaptureGraphImpl
,
iface
);
TRACE
(
"%p --> Forwarding to v2 (%p)
\n
"
,
iface
,
This
);
return
ICaptureGraphBuilder2_FindInterface
(
_ICaptureGraphBuilder2_
(
This
),
return
ICaptureGraphBuilder2_FindInterface
(
_ICaptureGraphBuilder2_
(
This
),
pCategory
,
NULL
,
pf
,
riid
,
ppint
);
pCategory
,
NULL
,
pf
,
riid
,
ppint
);
}
}
...
@@ -430,7 +428,7 @@ fnCaptureGraphBuilder_RenderStream(ICaptureGraphBuilder * iface,
...
@@ -430,7 +428,7 @@ fnCaptureGraphBuilder_RenderStream(ICaptureGraphBuilder * iface,
IBaseFilter
*
pfCompressor
,
IBaseFilter
*
pfRenderer
)
IBaseFilter
*
pfCompressor
,
IBaseFilter
*
pfRenderer
)
{
{
_ICOM_THIS_From_ICaptureGraphBuilder
(
CaptureGraphImpl
,
iface
);
_ICOM_THIS_From_ICaptureGraphBuilder
(
CaptureGraphImpl
,
iface
);
TRACE
(
"%p --> Forwarding to v2 (%p)
\n
"
,
iface
,
This
);
return
ICaptureGraphBuilder2_RenderStream
(
_ICaptureGraphBuilder2_
(
This
),
return
ICaptureGraphBuilder2_RenderStream
(
_ICaptureGraphBuilder2_
(
This
),
pCategory
,
NULL
,
pSource
,
pCategory
,
NULL
,
pSource
,
pfCompressor
,
pfRenderer
);
pfCompressor
,
pfRenderer
);
...
@@ -443,7 +441,7 @@ fnCaptureGraphBuilder_ControlStream(ICaptureGraphBuilder * iface,
...
@@ -443,7 +441,7 @@ fnCaptureGraphBuilder_ControlStream(ICaptureGraphBuilder * iface,
WORD
wStartCookie
,
WORD
wStopCookie
)
WORD
wStartCookie
,
WORD
wStopCookie
)
{
{
_ICOM_THIS_From_ICaptureGraphBuilder
(
CaptureGraphImpl
,
iface
);
_ICOM_THIS_From_ICaptureGraphBuilder
(
CaptureGraphImpl
,
iface
);
TRACE
(
"%p --> Forwarding to v2 (%p)
\n
"
,
iface
,
This
);
return
ICaptureGraphBuilder2_ControlStream
(
_ICaptureGraphBuilder2_
(
This
),
return
ICaptureGraphBuilder2_ControlStream
(
_ICaptureGraphBuilder2_
(
This
),
pCategory
,
NULL
,
pFilter
,
pstart
,
pCategory
,
NULL
,
pFilter
,
pstart
,
pstop
,
wStartCookie
,
wStopCookie
);
pstop
,
wStartCookie
,
wStopCookie
);
...
@@ -454,7 +452,7 @@ fnCaptureGraphBuilder_AllocCapFile(ICaptureGraphBuilder * iface,
...
@@ -454,7 +452,7 @@ fnCaptureGraphBuilder_AllocCapFile(ICaptureGraphBuilder * iface,
LPCOLESTR
lpstr
,
DWORDLONG
dwlSize
)
LPCOLESTR
lpstr
,
DWORDLONG
dwlSize
)
{
{
_ICOM_THIS_From_ICaptureGraphBuilder
(
CaptureGraphImpl
,
iface
);
_ICOM_THIS_From_ICaptureGraphBuilder
(
CaptureGraphImpl
,
iface
);
TRACE
(
"%p --> Forwarding to v2 (%p)
\n
"
,
iface
,
This
);
return
ICaptureGraphBuilder2_AllocCapFile
(
_ICaptureGraphBuilder2_
(
This
),
return
ICaptureGraphBuilder2_AllocCapFile
(
_ICaptureGraphBuilder2_
(
This
),
lpstr
,
dwlSize
);
lpstr
,
dwlSize
);
}
}
...
@@ -466,7 +464,7 @@ fnCaptureGraphBuilder_CopyCaptureFile(ICaptureGraphBuilder * iface,
...
@@ -466,7 +464,7 @@ fnCaptureGraphBuilder_CopyCaptureFile(ICaptureGraphBuilder * iface,
IAMCopyCaptureFileProgress
*
pCallback
)
IAMCopyCaptureFileProgress
*
pCallback
)
{
{
_ICOM_THIS_From_ICaptureGraphBuilder
(
CaptureGraphImpl
,
iface
);
_ICOM_THIS_From_ICaptureGraphBuilder
(
CaptureGraphImpl
,
iface
);
TRACE
(
"%p --> Forwarding to v2 (%p)
\n
"
,
iface
,
This
);
return
ICaptureGraphBuilder2_CopyCaptureFile
(
_ICaptureGraphBuilder2_
(
This
),
return
ICaptureGraphBuilder2_CopyCaptureFile
(
_ICaptureGraphBuilder2_
(
This
),
lpwstrOld
,
lpwstrNew
,
lpwstrOld
,
lpwstrNew
,
fAllowEscAbort
,
pCallback
);
fAllowEscAbort
,
pCallback
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment