Zebediah Figura : quartz/vmr9: Do not call VMR9_maybe_init() in vmr_start_stream().

Alexandre Julliard julliard at winehq.org
Mon May 4 15:49:16 CDT 2020


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

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Fri May  1 22:52:02 2020 -0500

quartz/vmr9: Do not call VMR9_maybe_init() in vmr_start_stream().

We have already connected if we got here, and we can only have failed to
allocate surfaces if we had no clipping window, which cannot have changed in the
meantime.

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

---

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

diff --git a/dlls/quartz/vmr9.c b/dlls/quartz/vmr9.c
index 52cc80eca4..113cb7cea4 100644
--- a/dlls/quartz/vmr9.c
+++ b/dlls/quartz/vmr9.c
@@ -484,8 +484,6 @@ static void vmr_start_stream(struct strmbase_renderer *iface)
 
     TRACE("(%p)\n", This);
 
-    if (This->renderer.sink.pin.peer)
-        VMR9_maybe_init(This, TRUE, &This->renderer.sink.pin.mt);
     IVMRImagePresenter9_StartPresenting(This->presenter, This->cookie);
     SetWindowPos(This->baseControlWindow.hwnd, NULL,
         This->source_rect.left,




More information about the wine-cvs mailing list