Module: wine Branch: master Commit: dc4d607062134fc32fb7f3e433b60e2c306a8f07 URL: http://source.winehq.org/git/wine.git/?a=commit;h=dc4d607062134fc32fb7f3e433...
Author: Aric Stewart aric@codeweavers.com Date: Mon Sep 27 13:29:39 2010 -0500
mciqtz32: Do not allow MCIQTZ_mciUpdate to interrupt a playing video.
---
dlls/mciqtz32/mciqtz.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/mciqtz32/mciqtz.c b/dlls/mciqtz32/mciqtz.c index fef27e7..aca7bf4 100644 --- a/dlls/mciqtz32/mciqtz.c +++ b/dlls/mciqtz32/mciqtz.c @@ -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 */