Commit 1c82aca1 authored by Bruno Jesus's avatar Bruno Jesus Committed by Alexandre Julliard

mciavi32: Add partial support for MCI_DGV_PLAY_REPEAT.

parent 8b7a0c0f
...@@ -402,14 +402,19 @@ static DWORD MCIAVI_player(WINE_MCIAVI *wma, DWORD dwFlags, LPMCI_PLAY_PARMS lpP ...@@ -402,14 +402,19 @@ static DWORD MCIAVI_player(WINE_MCIAVI *wma, DWORD dwFlags, LPMCI_PLAY_PARMS lpP
} }
ReleaseDC(wma->hWndPaint, hDC); ReleaseDC(wma->hWndPaint, hDC);
} }
if(wma->dwCurrVideoFrame >= wma->dwToVideoFrame) if (wma->dwCurrVideoFrame >= wma->dwToVideoFrame)
break; {
if (!(dwFlags & MCI_DGV_PLAY_REPEAT))
break;
TRACE("repeat media as requested\n");
wma->dwCurrVideoFrame = wma->dwCurrAudioBlock = 0;
}
if (wma->lpWaveFormat) if (wma->lpWaveFormat)
MCIAVI_PlayAudioBlocks(wma, nHdr, waveHdr); MCIAVI_PlayAudioBlocks(wma, nHdr, waveHdr);
tc = currenttime_us(); tc = currenttime_us();
if(tc < next_frame_us) if (tc < next_frame_us)
delta = next_frame_us - tc; delta = next_frame_us - tc;
else else
delta = 0; delta = 0;
...@@ -532,7 +537,7 @@ static DWORD MCIAVI_mciPlay(UINT wDevID, DWORD dwFlags, LPMCI_PLAY_PARMS lpParms ...@@ -532,7 +537,7 @@ static DWORD MCIAVI_mciPlay(UINT wDevID, DWORD dwFlags, LPMCI_PLAY_PARMS lpParms
if (dwFlags & MCI_DGV_PLAY_REVERSE) return MCIERR_UNSUPPORTED_FUNCTION; if (dwFlags & MCI_DGV_PLAY_REVERSE) return MCIERR_UNSUPPORTED_FUNCTION;
if (dwFlags & MCI_TEST) return 0; if (dwFlags & MCI_TEST) return 0;
if (dwFlags & (MCI_DGV_PLAY_REPEAT|MCI_MCIAVI_PLAY_WINDOW|MCI_MCIAVI_PLAY_FULLSCREEN|MCI_MCIAVI_PLAY_FULLBY2)) if (dwFlags & (MCI_MCIAVI_PLAY_WINDOW|MCI_MCIAVI_PLAY_FULLSCREEN|MCI_MCIAVI_PLAY_FULLBY2))
FIXME("Unsupported flag %08x\n", dwFlags); FIXME("Unsupported flag %08x\n", dwFlags);
EnterCriticalSection(&wma->cs); EnterCriticalSection(&wma->cs);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment