Skip to content

Commit

Permalink
Merge pull request #296 from MediaPortal/MP1-5212-Unable_to_play_with…
Browse files Browse the repository at this point in the history
…_MadVR_renderer

MP1-5212: Core: VMR9: Check IVideoWindow for null if MadVR is used
  • Loading branch information
andrewjswan authored Apr 1, 2024
2 parents b0e001f + fe15fc9 commit ae761f6
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 @@ -1797,7 +1797,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 ae761f6

Please sign in to comment.