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
a3fbb392
Commit
a3fbb392
authored
Nov 24, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Implemented a number of the MediaPosition methods.
parent
be21b3df
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
57 additions
and
30 deletions
+57
-30
filtergraph.c
dlls/quartz/filtergraph.c
+57
-30
No files found.
dlls/quartz/filtergraph.c
View file @
a3fbb392
...
...
@@ -2557,28 +2557,33 @@ static const IMediaSeekingVtbl IMediaSeeking_VTable =
MediaSeeking_GetPreroll
};
static
inline
IFilterGraphImpl
*
impl_from_IMediaPosition
(
IMediaPosition
*
iface
)
{
return
(
IFilterGraphImpl
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
IFilterGraphImpl
,
IMediaPosition_vtbl
));
}
/*** IUnknown methods ***/
static
HRESULT
WINAPI
MediaPosition_QueryInterface
(
IMediaPosition
*
iface
,
REFIID
riid
,
void
**
ppvObj
){
ICOM_THIS_MULTI
(
IFilterGraphImpl
,
IMediaPosition_vtbl
,
iface
);
static
HRESULT
WINAPI
MediaPosition_QueryInterface
(
IMediaPosition
*
iface
,
REFIID
riid
,
void
**
ppvObj
)
{
IFilterGraphImpl
*
This
=
impl_from_IMediaPosition
(
iface
);
TRACE
(
"(%p/%p)->(%s (%p), %p)
\n
"
,
This
,
iface
,
debugstr_guid
(
riid
),
riid
,
ppvObj
);
return
Filtergraph_QueryInterface
(
This
,
riid
,
ppvObj
);
}
static
ULONG
WINAPI
MediaPosition_AddRef
(
IMediaPosition
*
iface
){
ICOM_THIS_MULTI
(
IFilterGraphImpl
,
IMediaPosition_vtbl
,
iface
);
static
ULONG
WINAPI
MediaPosition_AddRef
(
IMediaPosition
*
iface
)
{
IFilterGraphImpl
*
This
=
impl_from_IMediaPosition
(
iface
);
TRACE
(
"(%p/%p)->()
\n
"
,
This
,
iface
);
return
Filtergraph_AddRef
(
This
);
}
static
ULONG
WINAPI
MediaPosition_Release
(
IMediaPosition
*
iface
){
ICOM_THIS_MULTI
(
IFilterGraphImpl
,
IMediaPosition_vtbl
,
iface
);
static
ULONG
WINAPI
MediaPosition_Release
(
IMediaPosition
*
iface
)
{
IFilterGraphImpl
*
This
=
impl_from_IMediaPosition
(
iface
);
TRACE
(
"(%p/%p)->()
\n
"
,
This
,
iface
);
return
Filtergraph_Release
(
This
);
}
...
...
@@ -2604,31 +2609,51 @@ static HRESULT WINAPI MediaPosition_Invoke(IMediaPosition* iface, DISPID dispIdM
}
/*** IMediaPosition methods ***/
static
HRESULT
WINAPI
MediaPosition_get_Duration
(
IMediaPosition
*
iface
,
REFTIME
*
plength
){
FIXME
(
"(%p)->(%p) stub!
\n
"
,
iface
,
plength
);
return
E_NOTIMPL
;
static
HRESULT
WINAPI
MediaPosition_get_Duration
(
IMediaPosition
*
iface
,
REFTIME
*
plength
)
{
LONGLONG
duration
;
IFilterGraphImpl
*
This
=
impl_from_IMediaPosition
(
iface
);
HRESULT
hr
=
IMediaSeeking_GetDuration
(
(
IMediaSeeking
*
)
&
This
->
IMediaSeeking_vtbl
,
&
duration
);
if
(
SUCCEEDED
(
hr
))
*
plength
=
duration
;
return
hr
;
}
static
HRESULT
WINAPI
MediaPosition_put_CurrentPosition
(
IMediaPosition
*
iface
,
REFTIME
llTime
){
ICOM_THIS_MULTI
(
IFilterGraphImpl
,
IMediaPosition_vtbl
,
iface
);
static
HRESULT
WINAPI
MediaPosition_put_CurrentPosition
(
IMediaPosition
*
iface
,
REFTIME
llTime
)
{
IFilterGraphImpl
*
This
=
impl_from_IMediaPosition
(
iface
);
LONGLONG
reftime
=
llTime
;
return
IMediaSeeking_SetPositions
((
IMediaSeeking
*
)
&
This
->
IMediaSeeking_vtbl
,
&
reftime
,
AM_SEEKING_AbsolutePositioning
,
NULL
,
AM_SEEKING_NoPositioning
);
return
IMediaSeeking_SetPositions
((
IMediaSeeking
*
)
&
This
->
IMediaSeeking_vtbl
,
&
reftime
,
AM_SEEKING_AbsolutePositioning
,
NULL
,
AM_SEEKING_NoPositioning
);
}
static
HRESULT
WINAPI
MediaPosition_get_CurrentPosition
(
IMediaPosition
*
iface
,
REFTIME
*
pllTime
){
FIXME
(
"(%p)->(%p) stub!
\n
"
,
iface
,
pllTime
);
return
E_NOTIMPL
;
static
HRESULT
WINAPI
MediaPosition_get_CurrentPosition
(
IMediaPosition
*
iface
,
REFTIME
*
pllTime
)
{
IFilterGraphImpl
*
This
=
impl_from_IMediaPosition
(
iface
);
LONGLONG
pos
;
HRESULT
hr
=
IMediaSeeking_GetCurrentPosition
(
(
IMediaSeeking
*
)
&
This
->
IMediaSeeking_vtbl
,
&
pos
);
if
(
SUCCEEDED
(
hr
))
*
pllTime
=
pos
;
return
hr
;
}
static
HRESULT
WINAPI
MediaPosition_get_StopTime
(
IMediaPosition
*
iface
,
REFTIME
*
pllTime
){
FIXME
(
"(%p)->(%p) stub!
\n
"
,
iface
,
pllTime
);
return
E_NOTIMPL
;
static
HRESULT
WINAPI
MediaPosition_get_StopTime
(
IMediaPosition
*
iface
,
REFTIME
*
pllTime
)
{
IFilterGraphImpl
*
This
=
impl_from_IMediaPosition
(
iface
);
LONGLONG
pos
;
HRESULT
hr
=
IMediaSeeking_GetStopPosition
(
(
IMediaSeeking
*
)
&
This
->
IMediaSeeking_vtbl
,
&
pos
);
if
(
SUCCEEDED
(
hr
))
*
pllTime
=
pos
;
return
hr
;
}
static
HRESULT
WINAPI
MediaPosition_put_StopTime
(
IMediaPosition
*
iface
,
REFTIME
llTime
){
FIXME
(
"(%p)->(%f) stub!
\n
"
,
iface
,
llTime
);
return
E_NOTIMPL
;
static
HRESULT
WINAPI
MediaPosition_put_StopTime
(
IMediaPosition
*
iface
,
REFTIME
llTime
)
{
IFilterGraphImpl
*
This
=
impl_from_IMediaPosition
(
iface
);
LONGLONG
reftime
=
llTime
;
return
IMediaSeeking_SetPositions
((
IMediaSeeking
*
)
&
This
->
IMediaSeeking_vtbl
,
NULL
,
AM_SEEKING_NoPositioning
,
&
reftime
,
AM_SEEKING_AbsolutePositioning
);
}
static
HRESULT
WINAPI
MediaPosition_get_PrerollTime
(
IMediaPosition
*
iface
,
REFTIME
*
pllTime
){
...
...
@@ -2641,14 +2666,16 @@ static HRESULT WINAPI MediaPosition_put_PrerollTime(IMediaPosition * iface, REFT
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
MediaPosition_put_Rate
(
IMediaPosition
*
iface
,
double
dRate
){
FIXME
(
"(%p)->(%f) stub!
\n
"
,
iface
,
dRate
);
return
E_NOTIMPL
;
static
HRESULT
WINAPI
MediaPosition_put_Rate
(
IMediaPosition
*
iface
,
double
dRate
)
{
IFilterGraphImpl
*
This
=
impl_from_IMediaPosition
(
iface
);
return
IMediaSeeking_SetRate
((
IMediaSeeking
*
)
&
This
->
IMediaSeeking_vtbl
,
dRate
);
}
static
HRESULT
WINAPI
MediaPosition_get_Rate
(
IMediaPosition
*
iface
,
double
*
pdRate
){
FIXME
(
"(%p)->(%p) stub!
\n
"
,
iface
,
pdRate
);
return
E_NOTIMPL
;
static
HRESULT
WINAPI
MediaPosition_get_Rate
(
IMediaPosition
*
iface
,
double
*
pdRate
)
{
IFilterGraphImpl
*
This
=
impl_from_IMediaPosition
(
iface
);
return
IMediaSeeking_GetRate
((
IMediaSeeking
*
)
&
This
->
IMediaSeeking_vtbl
,
pdRate
);
}
static
HRESULT
WINAPI
MediaPosition_CanSeekForward
(
IMediaPosition
*
iface
,
LONG
*
pCanSeekForward
){
...
...
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