From fe15fc9a7c873f9428048bbccff14c3316f3d6d2 Mon Sep 17 00:00:00 2001 From: epbk Date: Sat, 30 Mar 2024 17:30:36 +0100 Subject: [PATCH] MP1-5212: Core: VMR9: Check IVideoWindow for null if MadVR is used --- mediaportal/Core/Player/VMR9.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mediaportal/Core/Player/VMR9.cs b/mediaportal/Core/Player/VMR9.cs index db54dddb272..80f10f05179 100644 --- a/mediaportal/Core/Player/VMR9.cs +++ b/mediaportal/Core/Player/VMR9.cs @@ -1788,7 +1788,7 @@ public int StartMediaCtrl(IMediaControl mediaCtrl) } else // GUIGraphicsContext.VideoRenderer == GUIGraphicsContext.VideoRendererType.madVR { - if (!(g_Player.Player is DVDPlayer9) && !(g_Player.Player is DVDPlayer)) + if (videoWinMadVr != null && !(g_Player.Player is DVDPlayer9) && !(g_Player.Player is DVDPlayer)) { var xposition = GUIGraphicsContext.form.Location.X; var yposition = GUIGraphicsContext.form.Location.Y;