Permalink
Browse files

MP1-4781V7 : madVR V320 (fix null exception and dialog on stop)

  • Loading branch information...
Sebastiii committed Aug 26, 2017
1 parent 688775b commit 54ad2ad39574bdcc284d1198e318585725e2f063
Showing with 4 additions and 3 deletions.
  1. +2 −2 mediaportal/Core/Player/BDPlayer.cs
  2. +2 −1 mediaportal/Core/Player/VMR9.cs
@@ -1526,13 +1526,13 @@ public override void Pause()
if (_state == PlayState.Paused)
{
Speed = 1;
_mediaCtrl.Run();
if (_mediaCtrl != null) _mediaCtrl.Run();
_state = PlayState.Playing;
}
else if (_state == PlayState.Playing)
{
_state = PlayState.Paused;
_mediaCtrl.Pause();
if (_mediaCtrl != null) _mediaCtrl.Pause();
}
}
@@ -1687,11 +1687,12 @@ public void Dispose()
Log.Debug("VMR9: Dispose 2.1");
GC.Collect();
MadvrInterface.restoreDisplayModeNow(_vmr9Filter);
DestroyWindow(GUIGraphicsContext.HWnd);
RestoreGuiForMadVr();
Log.Debug("VMR9: Dispose 2.2");
DirectShowUtil.FinalReleaseComObject(_vmr9Filter);
Log.Debug("VMR9: Dispose 2.3");
_vmr9Filter = null;
DestroyWindow(GUIGraphicsContext.HWnd);
Log.Debug("VMR9: Dispose 3");
}
else

0 comments on commit 54ad2ad

Please sign in to comment.