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
c51ef12b
Commit
c51ef12b
authored
Jan 19, 2009
by
Christian Costa
Committed by
Alexandre Julliard
Jan 19, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mciavi: Don't wait for events we don't handle.
parent
d2a383b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
mciavi.c
dlls/mciavi32/mciavi.c
+2
-4
No files found.
dlls/mciavi32/mciavi.c
View file @
c51ef12b
...
...
@@ -506,8 +506,7 @@ static DWORD MCIAVI_mciPlay(UINT wDevID, DWORD dwFlags, LPMCI_PLAY_PARMS lpParms
delta
=
GetTickCount
()
-
tc
;
LeaveCriticalSection
(
&
wma
->
cs
);
ret
=
MsgWaitForMultipleObjectsEx
(
2
,
events
,
(
delta
>=
frameTime
)
?
0
:
frameTime
-
delta
,
QS_ALLINPUT
,
MWMO_INPUTAVAILABLE
);
ret
=
WaitForMultipleObjects
(
2
,
events
,
FALSE
,
(
delta
>=
frameTime
)
?
0
:
frameTime
-
delta
);
EnterCriticalSection
(
&
wma
->
cs
);
if
(
ret
==
WAIT_OBJECT_0
||
wma
->
dwStatus
!=
MCI_MODE_PLAY
)
break
;
...
...
@@ -520,8 +519,7 @@ static DWORD MCIAVI_mciPlay(UINT wDevID, DWORD dwFlags, LPMCI_PLAY_PARMS lpParms
delta
=
0
;
LeaveCriticalSection
(
&
wma
->
cs
);
ret
=
MsgWaitForMultipleObjectsEx
(
1
,
&
wma
->
hStopEvent
,
delta
,
QS_ALLINPUT
,
MWMO_INPUTAVAILABLE
);
ret
=
WaitForMultipleObjects
(
1
,
&
wma
->
hStopEvent
,
FALSE
,
delta
);
EnterCriticalSection
(
&
wma
->
cs
);
if
(
ret
==
WAIT_OBJECT_0
)
break
;
...
...
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