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
9c0ea9ea
Commit
9c0ea9ea
authored
Apr 02, 2008
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Apr 02, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Implement seeking on the null renderer.
parent
9d6239bd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
62 additions
and
0 deletions
+62
-0
nullrenderer.c
dlls/quartz/nullrenderer.c
+62
-0
No files found.
dlls/quartz/nullrenderer.c
View file @
9c0ea9ea
...
...
@@ -65,6 +65,7 @@ typedef struct NullRendererImpl
IUnknown
*
pUnkOuter
;
BOOL
bUnkOuterValid
;
BOOL
bAggregatable
;
MediaSeekingImpl
mediaSeeking
;
}
NullRendererImpl
;
static
const
IMemInputPinVtbl
MemInputPin_Vtbl
=
...
...
@@ -145,6 +146,62 @@ static HRESULT NullRenderer_QueryAccept(LPVOID iface, const AM_MEDIA_TYPE * pmt)
return
S_OK
;
}
static
inline
NullRendererImpl
*
impl_from_IMediaSeeking
(
IMediaSeeking
*
iface
)
{
return
(
NullRendererImpl
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
NullRendererImpl
,
mediaSeeking
.
lpVtbl
));
}
static
HRESULT
WINAPI
NullRendererImpl_Seeking_QueryInterface
(
IMediaSeeking
*
iface
,
REFIID
riid
,
LPVOID
*
ppv
)
{
NullRendererImpl
*
This
=
impl_from_IMediaSeeking
(
iface
);
return
IUnknown_QueryInterface
((
IUnknown
*
)
This
,
riid
,
ppv
);
}
static
ULONG
WINAPI
NullRendererImpl_Seeking_AddRef
(
IMediaSeeking
*
iface
)
{
NullRendererImpl
*
This
=
impl_from_IMediaSeeking
(
iface
);
return
IUnknown_AddRef
((
IUnknown
*
)
This
);
}
static
ULONG
WINAPI
NullRendererImpl_Seeking_Release
(
IMediaSeeking
*
iface
)
{
NullRendererImpl
*
This
=
impl_from_IMediaSeeking
(
iface
);
return
IUnknown_Release
((
IUnknown
*
)
This
);
}
static
const
IMediaSeekingVtbl
TransformFilter_Seeking_Vtbl
=
{
NullRendererImpl_Seeking_QueryInterface
,
NullRendererImpl_Seeking_AddRef
,
NullRendererImpl_Seeking_Release
,
MediaSeekingImpl_GetCapabilities
,
MediaSeekingImpl_CheckCapabilities
,
MediaSeekingImpl_IsFormatSupported
,
MediaSeekingImpl_QueryPreferredFormat
,
MediaSeekingImpl_GetTimeFormat
,
MediaSeekingImpl_IsUsingTimeFormat
,
MediaSeekingImpl_SetTimeFormat
,
MediaSeekingImpl_GetDuration
,
MediaSeekingImpl_GetStopPosition
,
MediaSeekingImpl_GetCurrentPosition
,
MediaSeekingImpl_ConvertTimeFormat
,
MediaSeekingImpl_SetPositions
,
MediaSeekingImpl_GetPositions
,
MediaSeekingImpl_GetAvailable
,
MediaSeekingImpl_SetRate
,
MediaSeekingImpl_GetRate
,
MediaSeekingImpl_GetPreroll
};
static
HRESULT
NullRendererImpl_Change
(
IBaseFilter
*
iface
)
{
TRACE
(
"(%p)
\n
"
,
iface
);
return
S_OK
;
}
HRESULT
NullRenderer_create
(
IUnknown
*
pUnkOuter
,
LPVOID
*
ppv
)
{
HRESULT
hr
;
...
...
@@ -181,6 +238,9 @@ HRESULT NullRenderer_create(IUnknown * pUnkOuter, LPVOID * ppv)
if
(
SUCCEEDED
(
hr
))
{
pNullRenderer
->
ppPins
[
0
]
=
(
IPin
*
)
pNullRenderer
->
pInputPin
;
MediaSeekingImpl_Init
((
IBaseFilter
*
)
pNullRenderer
,
NullRendererImpl_Change
,
NullRendererImpl_Change
,
NullRendererImpl_Change
,
&
pNullRenderer
->
mediaSeeking
,
&
pNullRenderer
->
csFilter
);
pNullRenderer
->
mediaSeeking
.
lpVtbl
=
&
TransformFilter_Seeking_Vtbl
;
*
ppv
=
(
LPVOID
)
pNullRenderer
;
}
else
...
...
@@ -212,6 +272,8 @@ static HRESULT WINAPI NullRendererInner_QueryInterface(IUnknown * iface, REFIID
*
ppv
=
(
LPVOID
)
This
;
else
if
(
IsEqualIID
(
riid
,
&
IID_IBaseFilter
))
*
ppv
=
(
LPVOID
)
This
;
else
if
(
IsEqualIID
(
riid
,
&
IID_IMediaSeeking
))
*
ppv
=
&
This
->
mediaSeeking
;
if
(
*
ppv
)
{
...
...
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