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
10c51a80
Commit
10c51a80
authored
Nov 09, 2010
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Nov 10, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Reset stream time when paused after seeking.
parent
f38688b8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
filtergraph.c
dlls/quartz/filtergraph.c
+10
-6
No files found.
dlls/quartz/filtergraph.c
View file @
10c51a80
...
...
@@ -1937,8 +1937,10 @@ static HRESULT WINAPI MediaControl_Run(IMediaControl *iface) {
IReferenceClock_GetTime
(
This
->
refClock
,
&
now
);
if
(
This
->
state
==
State_Stopped
)
This
->
start_time
=
now
+
500000
;
else
else
if
(
This
->
pause_time
>=
0
)
This
->
start_time
+=
now
-
This
->
pause_time
;
else
This
->
start_time
=
now
;
}
else
This
->
start_time
=
0
;
...
...
@@ -1957,8 +1959,10 @@ static HRESULT WINAPI MediaControl_Pause(IMediaControl *iface) {
if
(
This
->
state
==
State_Paused
)
goto
out
;
if
(
This
->
state
==
State_Running
&&
This
->
refClock
)
if
(
This
->
state
==
State_Running
&&
This
->
refClock
&&
This
->
start_time
>=
0
)
IReferenceClock_GetTime
(
This
->
refClock
,
&
This
->
pause_time
);
else
This
->
pause_time
=
-
1
;
SendFilterMessage
(
iface
,
SendPause
,
0
);
This
->
state
=
State_Paused
;
...
...
@@ -2433,10 +2437,10 @@ static HRESULT WINAPI MediaSeeking_SetPositions(IMediaSeeking *iface,
args
.
stopflags
=
dwStopFlags
;
hr
=
all_renderers_seek
(
This
,
found_setposition
,
(
DWORD_PTR
)
&
args
);
if
(
This
->
refClock
&&
((
dwCurrentFlags
&
0x7
)
!=
AM_SEEKING_NoPositioning
))
{
/* Update start time, prevents weird jumps */
IReferenceClock_GetTime
(
This
->
refClock
,
&
This
->
start_time
)
;
if
(
(
dwCurrentFlags
&
0x7
)
!=
AM_SEEKING_NoPositioning
)
{
if
(
This
->
state
==
State_Running
)
FIXME
(
"Seeking while graph is running is not properly supported!
\n
"
);
This
->
pause_time
=
This
->
start_time
=
-
1
;
}
LeaveCriticalSection
(
&
This
->
cs
);
...
...
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