Reload the video when reattaching the video display. Fixes a pile of issues and potential crashes

Originally committed to SVN as r6258.
This commit is contained in:
Thomas Goyne 2012-01-09 20:31:47 +00:00
parent cd48b711b4
commit 1801583ed7
1 changed files with 2 additions and 0 deletions

View File

@ -105,6 +105,7 @@ void DialogDetachedVideo::OnClose(wxCloseEvent&) {
context->videoDisplay = old_display;
context->videoSlider = old_slider;
OPT_SET("Video/Detached/Enabled")->SetBool(false);
context->videoController->Reload();
Destroy();
}
@ -126,6 +127,7 @@ void DialogDetachedVideo::OnVideoOpen() {
context->detachedVideo = 0;
context->videoDisplay = old_display;
context->videoSlider = old_slider;
context->videoController->Reload();
Destroy();
}
}