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
781cb486
Commit
781cb486
authored
May 12, 2010
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Oct 05, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Add additional notifications to transform filter.
parent
b6c52325
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
61 additions
and
3 deletions
+61
-3
transform.c
dlls/quartz/transform.c
+57
-3
transform.h
dlls/quartz/transform.h
+4
-0
No files found.
dlls/quartz/transform.c
View file @
781cb486
...
@@ -515,6 +515,60 @@ static HRESULT WINAPI TransformFilter_InputPin_Disconnect(IPin * iface)
...
@@ -515,6 +515,60 @@ static HRESULT WINAPI TransformFilter_InputPin_Disconnect(IPin * iface)
return
IPinImpl_Disconnect
(
iface
);
return
IPinImpl_Disconnect
(
iface
);
}
}
static
HRESULT
WINAPI
TransformFilter_InputPin_BeginFlush
(
IPin
*
iface
)
{
InputPin
*
This
=
(
InputPin
*
)
iface
;
TransformFilterImpl
*
pTransform
;
HRESULT
hr
=
S_OK
;
TRACE
(
"(%p)->()
\n
"
,
iface
);
pTransform
=
(
TransformFilterImpl
*
)
This
->
pin
.
pinInfo
.
pFilter
;
EnterCriticalSection
(
&
pTransform
->
csFilter
);
if
(
pTransform
->
pFuncsTable
->
pfnBeginFlush
)
hr
=
pTransform
->
pFuncsTable
->
pfnBeginFlush
(
This
);
if
(
SUCCEEDED
(
hr
))
hr
=
InputPin_BeginFlush
(
iface
);
LeaveCriticalSection
(
&
pTransform
->
csFilter
);
return
hr
;
}
static
HRESULT
WINAPI
TransformFilter_InputPin_EndFlush
(
IPin
*
iface
)
{
InputPin
*
This
=
(
InputPin
*
)
iface
;
TransformFilterImpl
*
pTransform
;
HRESULT
hr
=
S_OK
;
TRACE
(
"(%p)->()
\n
"
,
iface
);
pTransform
=
(
TransformFilterImpl
*
)
This
->
pin
.
pinInfo
.
pFilter
;
EnterCriticalSection
(
&
pTransform
->
csFilter
);
if
(
pTransform
->
pFuncsTable
->
pfnEndFlush
)
hr
=
pTransform
->
pFuncsTable
->
pfnEndFlush
(
This
);
if
(
SUCCEEDED
(
hr
))
hr
=
InputPin_EndFlush
(
iface
);
LeaveCriticalSection
(
&
pTransform
->
csFilter
);
return
hr
;
}
static
HRESULT
WINAPI
TransformFilter_InputPin_NewSegment
(
IPin
*
iface
,
REFERENCE_TIME
tStart
,
REFERENCE_TIME
tStop
,
double
dRate
)
{
InputPin
*
This
=
(
InputPin
*
)
iface
;
TransformFilterImpl
*
pTransform
;
HRESULT
hr
=
S_OK
;
TRACE
(
"(%p)->()
\n
"
,
iface
);
pTransform
=
(
TransformFilterImpl
*
)
This
->
pin
.
pinInfo
.
pFilter
;
EnterCriticalSection
(
&
pTransform
->
csFilter
);
if
(
pTransform
->
pFuncsTable
->
pfnNewSegment
)
hr
=
pTransform
->
pFuncsTable
->
pfnNewSegment
(
This
,
tStart
,
tStop
,
dRate
);
if
(
SUCCEEDED
(
hr
))
hr
=
InputPin_NewSegment
(
iface
,
tStart
,
tStop
,
dRate
);
LeaveCriticalSection
(
&
pTransform
->
csFilter
);
return
hr
;
}
static
const
IPinVtbl
TransformFilter_InputPin_Vtbl
=
static
const
IPinVtbl
TransformFilter_InputPin_Vtbl
=
{
{
InputPin_QueryInterface
,
InputPin_QueryInterface
,
...
@@ -532,9 +586,9 @@ static const IPinVtbl TransformFilter_InputPin_Vtbl =
...
@@ -532,9 +586,9 @@ static const IPinVtbl TransformFilter_InputPin_Vtbl =
IPinImpl_EnumMediaTypes
,
IPinImpl_EnumMediaTypes
,
IPinImpl_QueryInternalConnections
,
IPinImpl_QueryInternalConnections
,
TransformFilter_InputPin_EndOfStream
,
TransformFilter_InputPin_EndOfStream
,
InputPin_BeginFlush
,
TransformFilter_
InputPin_BeginFlush
,
InputPin_EndFlush
,
TransformFilter_
InputPin_EndFlush
,
InputPin_NewSegment
TransformFilter_
InputPin_NewSegment
};
};
static
HRESULT
WINAPI
TransformFilter_Output_EnumMediaTypes
(
IPin
*
iface
,
IEnumMediaTypes
**
ppEnum
)
static
HRESULT
WINAPI
TransformFilter_Output_EnumMediaTypes
(
IPin
*
iface
,
IEnumMediaTypes
**
ppEnum
)
...
...
dlls/quartz/transform.h
View file @
781cb486
...
@@ -29,6 +29,10 @@ typedef struct TransformFuncsTable {
...
@@ -29,6 +29,10 @@ typedef struct TransformFuncsTable {
HRESULT
(
*
pfnQueryConnect
)
(
TransformFilterImpl
*
This
,
const
AM_MEDIA_TYPE
*
pmt
);
HRESULT
(
*
pfnQueryConnect
)
(
TransformFilterImpl
*
This
,
const
AM_MEDIA_TYPE
*
pmt
);
HRESULT
(
*
pfnConnectInput
)
(
InputPin
*
pin
,
const
AM_MEDIA_TYPE
*
pmt
);
HRESULT
(
*
pfnConnectInput
)
(
InputPin
*
pin
,
const
AM_MEDIA_TYPE
*
pmt
);
HRESULT
(
*
pfnCleanup
)
(
InputPin
*
pin
);
HRESULT
(
*
pfnCleanup
)
(
InputPin
*
pin
);
HRESULT
(
*
pfnEndOfStream
)
(
InputPin
*
pin
);
HRESULT
(
*
pfnBeginFlush
)
(
InputPin
*
pin
);
HRESULT
(
*
pfnEndFlush
)
(
InputPin
*
pin
);
HRESULT
(
*
pfnNewSegment
)
(
InputPin
*
pin
,
REFERENCE_TIME
tStart
,
REFERENCE_TIME
tStop
,
double
dRate
);
}
TransformFuncsTable
;
}
TransformFuncsTable
;
struct
TransformFilterImpl
struct
TransformFilterImpl
...
...
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