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
49101219
Commit
49101219
authored
Feb 26, 2013
by
Alessandro Pignotti
Committed by
Alexandre Julliard
Mar 05, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: The filter graph manager should handle GetCurrentPosition itself.
parent
ae771fee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
30 deletions
+10
-30
filtergraph.c
dlls/quartz/filtergraph.c
+10
-30
No files found.
dlls/quartz/filtergraph.c
View file @
49101219
...
...
@@ -2451,49 +2451,29 @@ static HRESULT WINAPI MediaSeeking_GetStopPosition(IMediaSeeking *iface, LONGLON
return
hr
;
}
static
HRESULT
WINAPI
FoundCurrentPosition
(
IFilterGraphImpl
*
This
,
IMediaSeeking
*
seek
,
DWORD_PTR
pposition
)
{
HRESULT
hr
;
LONGLONG
pos
=
0
,
*
ppos
=
(
LONGLONG
*
)
pposition
;
hr
=
IMediaSeeking_GetCurrentPosition
(
seek
,
&
pos
);
if
(
FAILED
(
hr
))
return
hr
;
if
(
*
ppos
<
0
||
pos
<
*
ppos
)
*
ppos
=
pos
;
return
hr
;
}
static
HRESULT
WINAPI
MediaSeeking_GetCurrentPosition
(
IMediaSeeking
*
iface
,
LONGLONG
*
pCurrent
)
{
IFilterGraphImpl
*
This
=
impl_from_IMediaSeeking
(
iface
);
HRESULT
hr
;
LONGLONG
time
=
0
;
if
(
!
pCurrent
)
return
E_POINTER
;
EnterCriticalSection
(
&
This
->
cs
);
*
pCurrent
=
-
1
;
hr
=
all_renderers_seek
(
This
,
FoundCurrentPosition
,
(
DWORD_PTR
)
pCurrent
);
if
(
hr
==
E_NOTIMPL
)
{
LONGLONG
time
=
0
;
if
(
This
->
state
==
State_Running
&&
This
->
refClock
&&
This
->
start_time
>=
0
)
{
IReferenceClock_GetTime
(
This
->
refClock
,
&
time
);
if
(
time
)
time
-=
This
->
start_time
;
}
if
(
This
->
pause_time
>
0
)
time
+=
This
->
pause_time
;
*
pCurrent
=
time
;
hr
=
S_OK
;
if
(
This
->
state
==
State_Running
&&
This
->
refClock
&&
This
->
start_time
>=
0
)
{
IReferenceClock_GetTime
(
This
->
refClock
,
&
time
);
if
(
time
)
time
-=
This
->
start_time
;
}
if
(
This
->
pause_time
>
0
)
time
+=
This
->
pause_time
;
*
pCurrent
=
time
;
LeaveCriticalSection
(
&
This
->
cs
);
TRACE
(
"Time: %u.%03u
\n
"
,
(
DWORD
)(
*
pCurrent
/
10000000
),
(
DWORD
)((
*
pCurrent
/
10000
)
%
1000
));
return
hr
;
return
S_OK
;
}
static
HRESULT
WINAPI
MediaSeeking_ConvertTimeFormat
(
IMediaSeeking
*
iface
,
LONGLONG
*
pTarget
,
...
...
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