Skip to content

Commit

Permalink
MP1-5212: Core: VMR9: Check IVideoWindow for null if MadVR is used
Browse files Browse the repository at this point in the history
  • Loading branch information
epbk committed Mar 30, 2024
1 parent 3ba61d5 commit fbf68c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mediaportal/Core/Player/VMR9.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fbf68c5

Please sign in to comment.