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
120dd66e
Commit
120dd66e
authored
Nov 05, 2010
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Nov 08, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Actually use the start time in SendRun.
parent
4f8584ac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
17 deletions
+2
-17
filtergraph.c
dlls/quartz/filtergraph.c
+2
-17
No files found.
dlls/quartz/filtergraph.c
View file @
120dd66e
...
...
@@ -1829,21 +1829,7 @@ static HRESULT ExploreGraph(IFilterGraphImpl* pGraph, IPin* pOutputPin, fnFoundF
static
HRESULT
WINAPI
SendRun
(
IBaseFilter
*
pFilter
,
DWORD_PTR
data
)
{
LONGLONG
time
=
0
;
IReferenceClock
*
clock
=
NULL
;
IBaseFilter_GetSyncSource
(
pFilter
,
&
clock
);
if
(
clock
)
{
IReferenceClock_GetTime
(
clock
,
&
time
);
if
(
time
)
/* Add 50 ms */
time
+=
500000
;
if
(
time
<
0
)
time
=
0
;
IReferenceClock_Release
(
clock
);
}
REFERENCE_TIME
time
=
*
(
REFERENCE_TIME
*
)
data
;
return
IBaseFilter_Run
(
pFilter
,
time
);
}
...
...
@@ -1940,7 +1926,6 @@ static HRESULT WINAPI MediaControl_Run(IMediaControl *iface) {
ICOM_THIS_MULTI
(
IFilterGraphImpl
,
IMediaControl_vtbl
,
iface
);
TRACE
(
"(%p/%p)->()
\n
"
,
This
,
iface
);
EnterCriticalSection
(
&
This
->
cs
);
if
(
This
->
state
==
State_Running
)
goto
out
;
...
...
@@ -1957,7 +1942,7 @@ static HRESULT WINAPI MediaControl_Run(IMediaControl *iface) {
}
else
This
->
start_time
=
0
;
SendFilterMessage
(
iface
,
SendRun
,
0
);
SendFilterMessage
(
iface
,
SendRun
,
(
DWORD_PTR
)
&
This
->
start_time
);
This
->
state
=
State_Running
;
out:
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