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
22569e6d
Commit
22569e6d
authored
Mar 10, 2010
by
Jörg Höhle
Committed by
Alexandre Julliard
Mar 15, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mciavi: Prevent deadlock when closing while playing or when paused.
parent
52ebbb8a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
mciavi.c
dlls/mciavi32/mciavi.c
+3
-2
No files found.
dlls/mciavi32/mciavi.c
View file @
22569e6d
...
...
@@ -89,6 +89,7 @@ static DWORD MCIAVI_drvOpen(LPCWSTR str, LPMCI_OPEN_DRIVER_PARMSW modp)
wma
->
hStopEvent
=
CreateEventW
(
NULL
,
FALSE
,
FALSE
,
NULL
);
wma
->
wDevID
=
modp
->
wDeviceID
;
wma
->
wCommandTable
=
mciLoadCommandResource
(
MCIAVI_hInstance
,
mciAviWStr
,
0
);
wma
->
dwStatus
=
MCI_MODE_NOT_READY
;
modp
->
wCustomCommandTable
=
wma
->
wCommandTable
;
modp
->
wType
=
MCI_DEVTYPE_DIGITAL_VIDEO
;
mciSetDriverData
(
wma
->
wDevID
,
(
DWORD_PTR
)
wma
);
...
...
@@ -301,11 +302,11 @@ DWORD MCIAVI_mciClose(UINT wDevID, DWORD dwFlags, LPMCI_GENERIC_PARMS lpParms)
wma
=
MCIAVI_mciGetOpenDev
(
wDevID
);
if
(
wma
==
NULL
)
return
MCIERR_INVALID_DEVICE_ID
;
MCIAVI_mciStop
(
wDevID
,
MCI_WAIT
,
NULL
);
EnterCriticalSection
(
&
wma
->
cs
);
if
(
wma
->
nUseCount
==
1
)
{
if
(
wma
->
dwStatus
!=
MCI_MODE_STOP
)
dwRet
=
MCIAVI_mciStop
(
wDevID
,
MCI_WAIT
,
NULL
);
MCIAVI_CleanUp
(
wma
);
if
((
dwFlags
&
MCI_NOTIFY
)
&&
lpParms
)
{
...
...
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