Permalink
Browse files

MP1-4781V14 : madVR V488 : Reset correct video renderer on stop (when…

… using EVR for LiveTV, when going to a video video renderer was kept on EVR and it should be madVR)
  • Loading branch information...
Sebastiii committed Oct 4, 2018
1 parent 0793c3f commit 8be1944c9fe1f84d3f57c4c1f5e0095e46f4e6fd
Showing with 16 additions and 0 deletions.
  1. +16 −0 mediaportal/Core/Player/VMR9.cs
@@ -252,6 +252,7 @@ private enum Vmr9PlayState
protected bool UseMadVideoRenderer; // is madVR used?
protected bool UseEVRMadVRForTV;
protected bool UseMadVideoRenderer3D;
protected bool UseEnhancedVideoRenderer;
protected internal DateTime playbackTimer;
protected internal DateTime PlaneSceneMadvrTimer = new DateTime(0);
protected IVideoWindow videoWinMadVr;
@@ -887,6 +888,7 @@ public bool AddVMR9(IGraphBuilder graphBuilder)
UseMadVideoRenderer = xmlreader.GetValueAsBool("general", "useMadVideoRenderer", false);
UseEVRMadVRForTV = xmlreader.GetValueAsBool("general", "useEVRMadVRForTV", false);
UseMadVideoRenderer3D = xmlreader.GetValueAsBool("general", "useMadVideoRenderer3D", false);
UseEnhancedVideoRenderer = xmlreader.GetValueAsBool("general", "useEVRenderer", false);
}
Log.Debug("VMR9: addvmr9 - thread : {0}", Thread.CurrentThread.Name);
if (!_useVmr9)
@@ -2333,6 +2335,20 @@ public void Dispose()
GUIGraphicsContext.Vmr9Active = false;
}

// Reset video rendere status
if (UseEnhancedVideoRenderer)
{
GUIGraphicsContext.VideoRenderer = GUIGraphicsContext.VideoRendererType.EVR;
}
else if (UseMadVideoRenderer)
{
GUIGraphicsContext.VideoRenderer = GUIGraphicsContext.VideoRendererType.madVR;
}
else
{
GUIGraphicsContext.VideoRenderer = GUIGraphicsContext.VideoRendererType.VMR9;
}

Log.Debug("VMR9: Dispose done");
}

0 comments on commit 8be1944

Please sign in to comment.