Zebediah Figura : quartz/vmr9: Remove a redundant check from VMR9_SurfaceAllocator_InitializeDevice().

Alexandre Julliard julliard at winehq.org
Tue May 12 16:59:27 CDT 2020


Module: wine
Branch: master
Commit: 6502ac993d24ed4fad480098d113ef59207737de
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=6502ac993d24ed4fad480098d113ef59207737de

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Mon May 11 22:30:10 2020 -0500

quartz/vmr9: Remove a redundant check from VMR9_SurfaceAllocator_InitializeDevice().

This check is already made in allocate_surfaces().

Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/quartz/vmr9.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/dlls/quartz/vmr9.c b/dlls/quartz/vmr9.c
index 44ad296512..2bfbd8e821 100644
--- a/dlls/quartz/vmr9.c
+++ b/dlls/quartz/vmr9.c
@@ -2615,12 +2615,6 @@ static HRESULT WINAPI VMR9_SurfaceAllocator_InitializeDevice(IVMRSurfaceAllocato
 {
     struct default_presenter *This = impl_from_IVMRSurfaceAllocatorEx9(iface);
 
-    if (This->pVMR9->mode != VMR9Mode_Windowed && !This->pVMR9->hWndClippingWindow)
-    {
-        ERR("No window set\n");
-        return VFW_E_WRONG_STATE;
-    }
-
     This->info = *allocinfo;
 
     if (!CreateRenderingWindow(This, allocinfo, numbuffers))




More information about the wine-cvs mailing list