mciavi32: Remove redundant "not NULL" checks of the lpParms arg.
This commit is contained in:
parent
cf13e8a390
commit
cea6f01cd9
|
@ -427,10 +427,10 @@ static DWORD MCIAVI_mciPlay(UINT wDevID, DWORD dwFlags, LPMCI_PLAY_PARMS lpParms
|
||||||
dwFromFrame = wma->dwCurrVideoFrame;
|
dwFromFrame = wma->dwCurrVideoFrame;
|
||||||
dwToFrame = wma->dwPlayableVideoFrames - 1;
|
dwToFrame = wma->dwPlayableVideoFrames - 1;
|
||||||
|
|
||||||
if (lpParms && (dwFlags & MCI_FROM)) {
|
if (dwFlags & MCI_FROM) {
|
||||||
dwFromFrame = MCIAVI_ConvertTimeFormatToFrame(wma, lpParms->dwFrom);
|
dwFromFrame = MCIAVI_ConvertTimeFormatToFrame(wma, lpParms->dwFrom);
|
||||||
}
|
}
|
||||||
if (lpParms && (dwFlags & MCI_TO)) {
|
if (dwFlags & MCI_TO) {
|
||||||
dwToFrame = MCIAVI_ConvertTimeFormatToFrame(wma, lpParms->dwTo);
|
dwToFrame = MCIAVI_ConvertTimeFormatToFrame(wma, lpParms->dwTo);
|
||||||
}
|
}
|
||||||
if (dwToFrame >= wma->dwPlayableVideoFrames)
|
if (dwToFrame >= wma->dwPlayableVideoFrames)
|
||||||
|
@ -552,7 +552,7 @@ static DWORD MCIAVI_mciPlay(UINT wDevID, DWORD dwFlags, LPMCI_PLAY_PARMS lpParms
|
||||||
mci_play_done:
|
mci_play_done:
|
||||||
wma->dwStatus = MCI_MODE_STOP;
|
wma->dwStatus = MCI_MODE_STOP;
|
||||||
|
|
||||||
if (lpParms && (dwFlags & MCI_NOTIFY)) {
|
if (dwFlags & MCI_NOTIFY) {
|
||||||
TRACE("MCI_NOTIFY_SUCCESSFUL %08lX !\n", lpParms->dwCallback);
|
TRACE("MCI_NOTIFY_SUCCESSFUL %08lX !\n", lpParms->dwCallback);
|
||||||
mciDriverNotify(HWND_32(LOWORD(lpParms->dwCallback)),
|
mciDriverNotify(HWND_32(LOWORD(lpParms->dwCallback)),
|
||||||
wDevID, MCI_NOTIFY_SUCCESSFUL);
|
wDevID, MCI_NOTIFY_SUCCESSFUL);
|
||||||
|
|
Loading…
Reference in New Issue