Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
71bcdc90
Commit
71bcdc90
authored
Apr 02, 2007
by
Chris Robinson
Committed by
Alexandre Julliard
Apr 04, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Connect input when the pins connect, not when querying.
And clean up when disconnecting input.
parent
c28b5345
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
26 deletions
+42
-26
transform.c
dlls/quartz/transform.c
+42
-26
No files found.
dlls/quartz/transform.c
View file @
71bcdc90
...
...
@@ -97,11 +97,13 @@ static HRESULT TransformFilter_Sample(LPVOID iface, IMediaSample * pSample)
static
HRESULT
TransformFilter_Input_QueryAccept
(
LPVOID
iface
,
const
AM_MEDIA_TYPE
*
pmt
)
{
TransformFilterImpl
*
This
=
(
TransformFilterImpl
*
)
iface
;
/* TransformFilterImpl* This = (TransformFilterImpl*)iface; */
TRACE
(
"%p
\n
"
,
iface
);
dump_AM_MEDIA_TYPE
(
pmt
);
return
This
->
pFuncsTable
->
pfnConnectInput
(
This
,
pmt
);
/* FIXME: Add a function to verify media type with the actual filter */
/* return This->pFuncsTable->pfnConnectInput(This, pmt); */
return
S_OK
;
}
...
...
@@ -294,8 +296,6 @@ static ULONG WINAPI TransformFilter_Release(IBaseFilter * iface)
CoTaskMemFree
(
This
->
ppPins
);
This
->
lpVtbl
=
NULL
;
This
->
pFuncsTable
->
pfnCleanup
(
This
);
This
->
csFilter
.
DebugInfo
->
Spare
[
0
]
=
0
;
DeleteCriticalSection
(
&
This
->
csFilter
);
...
...
@@ -535,14 +535,48 @@ static HRESULT WINAPI TransformFilter_InputPin_EndOfStream(IPin * iface)
return
hr
;
}
static
HRESULT
WINAPI
TransformFilter_InputPin_ReceiveConnection
(
IPin
*
iface
,
IPin
*
pReceivePin
,
const
AM_MEDIA_TYPE
*
pmt
)
{
InputPin
*
This
=
(
InputPin
*
)
iface
;
TransformFilterImpl
*
pTransform
;
HRESULT
hr
;
TRACE
(
"(%p)->(%p, %p)
\n
"
,
iface
,
pReceivePin
,
pmt
);
pTransform
=
(
TransformFilterImpl
*
)
This
->
pin
.
pinInfo
.
pFilter
;
hr
=
pTransform
->
pFuncsTable
->
pfnConnectInput
(
pTransform
,
pmt
);
if
(
SUCCEEDED
(
hr
))
{
hr
=
InputPin_ReceiveConnection
(
iface
,
pReceivePin
,
pmt
);
if
(
FAILED
(
hr
))
pTransform
->
pFuncsTable
->
pfnCleanup
(
pTransform
);
}
return
hr
;
}
static
HRESULT
WINAPI
TransformFilter_InputPin_Disconnect
(
IPin
*
iface
)
{
InputPin
*
This
=
(
InputPin
*
)
iface
;
TransformFilterImpl
*
pTransform
;
TRACE
(
"(%p)->()
\n
"
,
iface
);
pTransform
=
(
TransformFilterImpl
*
)
This
->
pin
.
pinInfo
.
pFilter
;
pTransform
->
pFuncsTable
->
pfnCleanup
(
pTransform
);
return
IPinImpl_Disconnect
(
iface
);
}
static
const
IPinVtbl
TransformFilter_InputPin_Vtbl
=
{
InputPin_QueryInterface
,
IPinImpl_AddRef
,
InputPin_Release
,
InputPin_Connect
,
InputPin_ReceiveConnection
,
IPinImpl
_Disconnect
,
TransformFilter_
InputPin_ReceiveConnection
,
TransformFilter_InputPin
_Disconnect
,
IPinImpl_ConnectedTo
,
IPinImpl_ConnectionMediaType
,
IPinImpl_QueryPinInfo
,
...
...
@@ -570,32 +604,14 @@ static HRESULT WINAPI TransformFilter_Output_EnumMediaTypes(IPin * iface, IEnumM
return
IEnumMediaTypesImpl_Construct
(
&
emd
,
ppEnum
);
}
static
HRESULT
WINAPI
TransformFilter_Output_Disconnect
(
IPin
*
iface
)
{
OutputPin
*
This
=
(
OutputPin
*
)
iface
;
HRESULT
hr
;
TransformFilterImpl
*
pTransformFilter
=
(
TransformFilterImpl
*
)
This
->
pin
.
pinInfo
.
pFilter
;
TRACE
(
"(%p/%p)->()
\n
"
,
This
,
iface
);
hr
=
OutputPin_Disconnect
(
iface
);
if
(
hr
==
S_OK
)
{
pTransformFilter
->
pFuncsTable
->
pfnCleanup
(
pTransformFilter
);
}
return
hr
;
}
static
const
IPinVtbl
TransformFilter_OutputPin_Vtbl
=
static
const
IPinVtbl
TransformFilter_OutputPin_Vtbl
=
{
OutputPin_QueryInterface
,
IPinImpl_AddRef
,
OutputPin_Release
,
OutputPin_Connect
,
OutputPin_ReceiveConnection
,
TransformFilter_Output
_Disconnect
,
OutputPin
_Disconnect
,
IPinImpl_ConnectedTo
,
IPinImpl_ConnectionMediaType
,
IPinImpl_QueryPinInfo
,
...
...
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