mciqtz32: Do not allow MCIQTZ_mciUpdate to interrupt a playing video.

This commit is contained in:
Aric Stewart 2010-09-27 13:29:39 -05:00 committed by Alexandre Julliard
parent e2b3a7f479
commit dc4d607062
1 changed files with 3 additions and 0 deletions

View File

@ -822,6 +822,9 @@ static DWORD MCIQTZ_mciUpdate(UINT wDevID, DWORD dwFlags, LPMCI_DGV_UPDATE_PARMS
LONG visible = OATRUE;
res = MCIERR_INTERNAL;
IMediaControl_GetState(wma->pmctrl, -1, &state);
if (state == State_Running)
return MCIERR_UNSUPPORTED_FUNCTION;
/* If in stopped state, nothing has been drawn to screen
* moving to pause, which is needed for the old dib renderer, will result
* in a single frame drawn, so hide the window here */