Fixed the issue on #538, although this needs some testing to see if it didn't break timecode loading support.

Originally committed to SVN as r1711.
This commit is contained in:
Rodrigo Braz Monteiro 2008-01-14 00:39:19 +00:00
parent 91986412b9
commit f939133a36

View file

@ -1020,9 +1020,16 @@ void FrameMain::LoadVideo(wxString file,bool autoload) {
Freeze(); Freeze();
VideoContext::Get()->Stop(); VideoContext::Get()->Stop();
try { try {
if (VideoContext::Get()->IsLoaded() && VFR_Output.GetFrameRateType() == VFR && !autoload) { if (VideoContext::Get()->IsLoaded()) {
int result = wxMessageBox(_("You have timecodes loaded currently. Would you like to unload them?"), _("Unload timecodes?"), wxYES_NO, this); if (VFR_Output.GetFrameRateType() == VFR) {
if (result == wxYES) { if (!autoload) {
int result = wxMessageBox(_("You have timecodes loaded currently. Would you like to unload them?"), _("Unload timecodes?"), wxYES_NO, this);
if (result == wxYES) {
VFR_Output.Unload();
}
}
}
else {
VFR_Output.Unload(); VFR_Output.Unload();
} }
} }