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
5983223b
Commit
5983223b
authored
Mar 19, 2004
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Mar 19, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Just update from/to pointers and exit on a subsequent MCI_PLAY
command.
parent
946cd3c1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
4 deletions
+19
-4
mciavi.c
dlls/winmm/mciavi/mciavi.c
+18
-4
private_mciavi.h
dlls/winmm/mciavi/private_mciavi.h
+1
-0
No files found.
dlls/winmm/mciavi/mciavi.c
View file @
5983223b
...
@@ -427,7 +427,6 @@ static DWORD MCIAVI_mciPlay(UINT wDevID, DWORD dwFlags, LPMCI_PLAY_PARMS lpParms
...
@@ -427,7 +427,6 @@ static DWORD MCIAVI_mciPlay(UINT wDevID, DWORD dwFlags, LPMCI_PLAY_PARMS lpParms
return
MCIERR_NO_WINDOW
;
return
MCIERR_NO_WINDOW
;
}
}
wma
->
dwStatus
=
MCI_MODE_PLAY
;
LeaveCriticalSection
(
&
wma
->
cs
);
LeaveCriticalSection
(
&
wma
->
cs
);
if
(
!
(
dwFlags
&
MCI_WAIT
))
{
if
(
!
(
dwFlags
&
MCI_WAIT
))
{
...
@@ -435,7 +434,8 @@ static DWORD MCIAVI_mciPlay(UINT wDevID, DWORD dwFlags, LPMCI_PLAY_PARMS lpParms
...
@@ -435,7 +434,8 @@ static DWORD MCIAVI_mciPlay(UINT wDevID, DWORD dwFlags, LPMCI_PLAY_PARMS lpParms
(
DWORD_PTR
)
lpParms
,
sizeof
(
MCI_PLAY_PARMS
));
(
DWORD_PTR
)
lpParms
,
sizeof
(
MCI_PLAY_PARMS
));
}
}
ShowWindow
(
wma
->
hWndPaint
,
SW_SHOWNA
);
if
(
!
(
GetWindowLongW
(
wma
->
hWndPaint
,
GWL_STYLE
)
&
WS_VISIBLE
))
ShowWindow
(
wma
->
hWndPaint
,
SW_SHOWNA
);
EnterCriticalSection
(
&
wma
->
cs
);
EnterCriticalSection
(
&
wma
->
cs
);
...
@@ -454,13 +454,23 @@ static DWORD MCIAVI_mciPlay(UINT wDevID, DWORD dwFlags, LPMCI_PLAY_PARMS lpParms
...
@@ -454,13 +454,23 @@ static DWORD MCIAVI_mciPlay(UINT wDevID, DWORD dwFlags, LPMCI_PLAY_PARMS lpParms
TRACE
(
"Playing from frame=%lu to frame=%lu
\n
"
,
dwFromFrame
,
dwToFrame
);
TRACE
(
"Playing from frame=%lu to frame=%lu
\n
"
,
dwFromFrame
,
dwToFrame
);
wma
->
dwCurrVideoFrame
=
dwFromFrame
;
wma
->
dwCurrVideoFrame
=
dwFromFrame
;
wma
->
dwToVideoFrame
=
dwToFrame
;
if
(
dwToFrame
<=
wma
->
dwCurrVideoFrame
)
/* if already playing exit */
if
(
wma
->
dwStatus
==
MCI_MODE_PLAY
)
{
LeaveCriticalSection
(
&
wma
->
cs
);
return
0
;
}
if
(
wma
->
dwToVideoFrame
<=
wma
->
dwCurrVideoFrame
)
{
{
dwRet
=
0
;
dwRet
=
0
;
goto
mci_play_done
;
goto
mci_play_done
;
}
}
wma
->
dwStatus
=
MCI_MODE_PLAY
;
if
(
dwFlags
&
(
MCI_DGV_PLAY_REPEAT
|
MCI_DGV_PLAY_REVERSE
|
MCI_MCIAVI_PLAY_WINDOW
|
MCI_MCIAVI_PLAY_FULLSCREEN
))
if
(
dwFlags
&
(
MCI_DGV_PLAY_REPEAT
|
MCI_DGV_PLAY_REVERSE
|
MCI_MCIAVI_PLAY_WINDOW
|
MCI_MCIAVI_PLAY_FULLSCREEN
))
FIXME
(
"Unsupported flag %08lx
\n
"
,
dwFlags
);
FIXME
(
"Unsupported flag %08lx
\n
"
,
dwFlags
);
...
@@ -610,7 +620,9 @@ static DWORD MCIAVI_mciStop(UINT wDevID, DWORD dwFlags, LPMCI_GENERIC_PARMS lpPa
...
@@ -610,7 +620,9 @@ static DWORD MCIAVI_mciStop(UINT wDevID, DWORD dwFlags, LPMCI_GENERIC_PARMS lpPa
switch
(
wma
->
dwStatus
)
{
switch
(
wma
->
dwStatus
)
{
case
MCI_MODE_PLAY
:
case
MCI_MODE_PLAY
:
case
MCI_MODE_RECORD
:
case
MCI_MODE_RECORD
:
LeaveCriticalSection
(
&
wma
->
cs
);
SetEvent
(
wma
->
hStopEvent
);
SetEvent
(
wma
->
hStopEvent
);
EnterCriticalSection
(
&
wma
->
cs
);
/* fall through */
/* fall through */
case
MCI_MODE_PAUSE
:
case
MCI_MODE_PAUSE
:
/* Since our wave notification callback takes the lock,
/* Since our wave notification callback takes the lock,
...
@@ -648,6 +660,8 @@ static DWORD MCIAVI_mciPause(UINT wDevID, DWORD dwFlags, LPMCI_GENERIC_PARMS lpP
...
@@ -648,6 +660,8 @@ static DWORD MCIAVI_mciPause(UINT wDevID, DWORD dwFlags, LPMCI_GENERIC_PARMS lpP
{
{
WINE_MCIAVI
*
wma
;
WINE_MCIAVI
*
wma
;
TRACE
(
"(%04x, %08lX, %p)
\n
"
,
wDevID
,
dwFlags
,
lpParms
);
wma
=
MCIAVI_mciGetOpenDev
(
wDevID
);
wma
=
MCIAVI_mciGetOpenDev
(
wDevID
);
if
(
wma
==
NULL
)
return
MCIERR_INVALID_DEVICE_ID
;
if
(
wma
==
NULL
)
return
MCIERR_INVALID_DEVICE_ID
;
...
@@ -660,7 +674,7 @@ static DWORD MCIAVI_mciPause(UINT wDevID, DWORD dwFlags, LPMCI_GENERIC_PARMS lpP
...
@@ -660,7 +674,7 @@ static DWORD MCIAVI_mciPause(UINT wDevID, DWORD dwFlags, LPMCI_GENERIC_PARMS lpP
LeaveCriticalSection
(
&
wma
->
cs
);
LeaveCriticalSection
(
&
wma
->
cs
);
return
waveOutPause
(
wma
->
hWave
);
return
waveOutPause
(
wma
->
hWave
);
}
}
LeaveCriticalSection
(
&
wma
->
cs
);
LeaveCriticalSection
(
&
wma
->
cs
);
return
0
;
return
0
;
}
}
...
...
dlls/winmm/mciavi/private_mciavi.h
View file @
5983223b
...
@@ -76,6 +76,7 @@ typedef struct {
...
@@ -76,6 +76,7 @@ typedef struct {
HWND
hWnd
,
hWndPaint
;
HWND
hWnd
,
hWndPaint
;
DWORD
dwCachedFrame
;
/* buffered frame */
DWORD
dwCachedFrame
;
/* buffered frame */
DWORD
dwCurrVideoFrame
;
/* video frame to display and current position */
DWORD
dwCurrVideoFrame
;
/* video frame to display and current position */
DWORD
dwToVideoFrame
;
/* play to */
DWORD
dwCurrAudioBlock
;
/* current audio block being played */
DWORD
dwCurrAudioBlock
;
/* current audio block being played */
RECT
source
,
dest
;
RECT
source
,
dest
;
/* data for the background mechanism */
/* data for the background mechanism */
...
...
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