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
1 changed files with 7 additions and 7 deletions

View File

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