Fixed unloading of video.

Originally committed to SVN as r1086.
This commit is contained in:
Rodrigo Braz Monteiro 2007-04-17 01:19:04 +00:00
parent 6724424880
commit e7eb42906a

View file

@ -806,14 +806,14 @@ void FrameMain::SynchronizeProject(bool fromSubs) {
// Video // Video
if (curSubsVideo != VideoContext::Get()->videoName) { if (curSubsVideo != VideoContext::Get()->videoName) {
if (curSubsVideo != _T("")) { //if (curSubsVideo != _T("")) {
LoadVideo(curSubsVideo); LoadVideo(curSubsVideo);
if (VideoContext::Get()->IsLoaded()) { if (VideoContext::Get()->IsLoaded()) {
VideoContext::Get()->SetAspectRatio(videoAr,videoArValue); VideoContext::Get()->SetAspectRatio(videoAr,videoArValue);
videoBox->videoDisplay->SetZoomPos(videoZoom-1); videoBox->videoDisplay->SetZoomPos(videoZoom-1);
VideoContext::Get()->JumpToFrame(videoPos); VideoContext::Get()->JumpToFrame(videoPos);
}
} }
//}
} }
// Keyframes // Keyframes