mirror of https://github.com/odrling/Aegisub
Kill VideoContext::keyframesRevision, which is no longer used
Originally committed to SVN as r5067.
This commit is contained in:
parent
4684d5c4f8
commit
364f398c5f
|
@ -134,7 +134,6 @@ void VideoContext::Reset() {
|
||||||
|
|
||||||
keyFrames.clear();
|
keyFrames.clear();
|
||||||
videoFPS = agi::vfr::Framerate();
|
videoFPS = agi::vfr::Framerate();
|
||||||
keyframesRevision++;
|
|
||||||
|
|
||||||
// Remove video data
|
// Remove video data
|
||||||
frame_n = 0;
|
frame_n = 0;
|
||||||
|
@ -469,12 +468,10 @@ void VideoContext::LoadKeyframes(wxString filename) {
|
||||||
catch (...) {
|
catch (...) {
|
||||||
wxMessageBox(_T("Unknown error"), _T("Error opening keyframes file"), wxOK | wxICON_ERROR, NULL);
|
wxMessageBox(_T("Unknown error"), _T("Error opening keyframes file"), wxOK | wxICON_ERROR, NULL);
|
||||||
}
|
}
|
||||||
keyframesRevision++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void VideoContext::SaveKeyframes(wxString filename) {
|
void VideoContext::SaveKeyframes(wxString filename) {
|
||||||
KeyFrameFile::Save(filename, GetKeyFrames());
|
KeyFrameFile::Save(filename, GetKeyFrames());
|
||||||
keyframesRevision++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void VideoContext::CloseKeyframes() {
|
void VideoContext::CloseKeyframes() {
|
||||||
|
@ -486,7 +483,6 @@ void VideoContext::CloseKeyframes() {
|
||||||
keyFrames.clear();
|
keyFrames.clear();
|
||||||
}
|
}
|
||||||
KeyframesOpen(keyFrames);
|
KeyframesOpen(keyFrames);
|
||||||
keyframesRevision++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void VideoContext::LoadTimecodes(wxString filename) {
|
void VideoContext::LoadTimecodes(wxString filename) {
|
||||||
|
|
|
@ -102,10 +102,6 @@ private:
|
||||||
/// DOCME
|
/// DOCME
|
||||||
wxString keyFramesFilename;
|
wxString keyFramesFilename;
|
||||||
|
|
||||||
/// Revision counter for keyframes, when the set of keyframes is changed this number changes
|
|
||||||
int keyframesRevision;
|
|
||||||
|
|
||||||
|
|
||||||
/// DOCME
|
/// DOCME
|
||||||
wxMutex playMutex;
|
wxMutex playMutex;
|
||||||
|
|
||||||
|
@ -270,7 +266,6 @@ public:
|
||||||
void CloseKeyframes();
|
void CloseKeyframes();
|
||||||
bool OverKeyFramesLoaded() const { return !keyFramesFilename.empty(); }
|
bool OverKeyFramesLoaded() const { return !keyFramesFilename.empty(); }
|
||||||
bool KeyFramesLoaded() const { return !keyFrames.empty(); }
|
bool KeyFramesLoaded() const { return !keyFrames.empty(); }
|
||||||
int GetKeyframesRevision() const { return keyframesRevision; }
|
|
||||||
|
|
||||||
wxString GetTimecodesName() const { return ovrTimecodeFile; }
|
wxString GetTimecodesName() const { return ovrTimecodeFile; }
|
||||||
void LoadTimecodes(wxString filename);
|
void LoadTimecodes(wxString filename);
|
||||||
|
|
Loading…
Reference in New Issue