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:
parent
cd48b711b4
commit
1801583ed7
1 changed files with 2 additions and 0 deletions
|
@ -105,6 +105,7 @@ void DialogDetachedVideo::OnClose(wxCloseEvent&) {
|
||||||
context->videoDisplay = old_display;
|
context->videoDisplay = old_display;
|
||||||
context->videoSlider = old_slider;
|
context->videoSlider = old_slider;
|
||||||
OPT_SET("Video/Detached/Enabled")->SetBool(false);
|
OPT_SET("Video/Detached/Enabled")->SetBool(false);
|
||||||
|
context->videoController->Reload();
|
||||||
Destroy();
|
Destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -126,6 +127,7 @@ void DialogDetachedVideo::OnVideoOpen() {
|
||||||
context->detachedVideo = 0;
|
context->detachedVideo = 0;
|
||||||
context->videoDisplay = old_display;
|
context->videoDisplay = old_display;
|
||||||
context->videoSlider = old_slider;
|
context->videoSlider = old_slider;
|
||||||
|
context->videoController->Reload();
|
||||||
Destroy();
|
Destroy();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue