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
855e3a08
Commit
855e3a08
authored
Apr 01, 2008
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Apr 02, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Implement filtergraph mediaseeking setposition.
parent
7cb1324a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
2 deletions
+36
-2
filtergraph.c
dlls/quartz/filtergraph.c
+36
-2
No files found.
dlls/quartz/filtergraph.c
View file @
855e3a08
...
...
@@ -2015,16 +2015,50 @@ static HRESULT WINAPI MediaSeeking_ConvertTimeFormat(IMediaSeeking *iface,
return
S_OK
;
}
struct
pos_args
{
LONGLONG
*
current
,
*
stop
;
DWORD
curflags
,
stopflags
;
};
static
HRESULT
WINAPI
found_setposition
(
IFilterGraphImpl
*
This
,
IMediaSeeking
*
seek
,
DWORD_PTR
pargs
)
{
struct
pos_args
*
args
=
(
void
*
)
pargs
;
return
IMediaSeeking_SetPositions
(
seek
,
args
->
current
,
args
->
curflags
,
args
->
stop
,
args
->
stopflags
);
}
static
HRESULT
WINAPI
MediaSeeking_SetPositions
(
IMediaSeeking
*
iface
,
LONGLONG
*
pCurrent
,
DWORD
dwCurrentFlags
,
LONGLONG
*
pStop
,
DWORD
dwStopFlags
)
{
ICOM_THIS_MULTI
(
IFilterGraphImpl
,
IMediaSeeking_vtbl
,
iface
);
HRESULT
hr
=
S_OK
;
FILTER_STATE
state
;
struct
pos_args
args
;
FIXME
(
"(%p/%p)->(%p, %08x, %p, %08x): stub !!!
\n
"
,
This
,
iface
,
pCurrent
,
dwCurrentFlags
,
pStop
,
dwStopFlags
);
TRACE
(
"(%p/%p)->(%p, %08x, %p, %08x)
\n
"
,
This
,
iface
,
pCurrent
,
dwCurrentFlags
,
pStop
,
dwStopFlags
);
return
S_OK
;
EnterCriticalSection
(
&
This
->
cs
);
state
=
This
->
state
;
TRACE
(
"State: %s
\n
"
,
state
==
State_Running
?
"Running"
:
(
state
==
State_Paused
?
"Paused"
:
(
state
==
State_Stopped
?
"Stopped"
:
"UNKNOWN"
)));
if
((
dwCurrentFlags
&
0x7
)
==
AM_SEEKING_AbsolutePositioning
)
This
->
position
=
*
pCurrent
;
else
if
((
dwCurrentFlags
&
0x7
)
!=
AM_SEEKING_NoPositioning
)
FIXME
(
"Adjust method %x not handled yet!
\n
"
,
dwCurrentFlags
&
0x7
);
if
((
dwStopFlags
&
0x7
)
!=
AM_SEEKING_NoPositioning
)
FIXME
(
"Stop position not handled yet!
\n
"
);
args
.
current
=
pCurrent
;
args
.
stop
=
pStop
;
args
.
curflags
=
dwCurrentFlags
;
args
.
stopflags
=
dwStopFlags
;
hr
=
all_renderers_seek
(
This
,
found_setposition
,
(
DWORD_PTR
)
&
args
);
LeaveCriticalSection
(
&
This
->
cs
);
return
hr
;
}
static
HRESULT
WINAPI
MediaSeeking_GetPositions
(
IMediaSeeking
*
iface
,
...
...
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