fix compilation of the avs provider

Originally committed to SVN as r4694.
This commit is contained in:
Karl Blomster 2010-07-19 01:08:09 +00:00
parent 12014b944e
commit cd810ae1c0
4 changed files with 14 additions and 12 deletions

View File

@ -123,7 +123,7 @@ void MatroskaWrapper::Close() {
file = NULL;
delete input;
}
keyFrames.Clear();
keyFrames.clear();
timecodes.clear();
}
@ -132,7 +132,7 @@ void MatroskaWrapper::Close() {
/// @brief Return keyframes
/// @return
///
wxArrayInt MatroskaWrapper::GetKeyFrames() {
std::vector<int> MatroskaWrapper::GetKeyFrames() {
return keyFrames;
}
@ -153,7 +153,7 @@ bool operator < (MkvFrame &t1, MkvFrame &t2) {
///
void MatroskaWrapper::Parse() {
// Clear keyframes and timecodes
keyFrames.Clear();
keyFrames.clear();
bytePos.Clear();
timecodes.clear();
frames.clear();
@ -230,7 +230,7 @@ void MatroskaWrapper::Parse() {
int i = 0;
for (std::list<MkvFrame>::iterator cur=frames.begin();cur!=frames.end();cur++) {
curFrame = *cur;
if (curFrame.isKey) keyFrames.Add(i);
if (curFrame.isKey) keyFrames.push_back(i);
bytePos.Add(curFrame.filePos);
timecodes.push_back(curFrame.time);
i++;
@ -243,7 +243,7 @@ void MatroskaWrapper::Parse() {
int i = 0;
for (std::list<MkvFrame>::iterator cur=frames.begin();cur!=frames.end();cur++) {
curFrame = *cur;
if (curFrame.isKey) keyFrames.Add(i);
if (curFrame.isKey) keyFrames.push_back(i);
bytePos.Add(curFrame.filePos);
i++;
}

View File

@ -117,7 +117,7 @@ class MatroskaWrapper {
private:
/// DOCME
wxArrayInt keyFrames;
std::vector<int> keyFrames;
/// DOCME
std::vector<double> timecodes;
@ -162,7 +162,7 @@ public:
/// @return
///
unsigned int GetFrameCount() { return timecodes.size(); }
wxArrayInt GetKeyFrames();
std::vector<int> GetKeyFrames();
void GetSubtitles(AssFile *target);
static bool HasSubtitles(wxString const& filename);

View File

@ -47,8 +47,8 @@
/// @brief Get keyframe list
/// @param filename
///
wxArrayInt VFWWrapper::GetKeyFrames(wxString filename) {
wxArrayInt frames;
std::vector<int> VFWWrapper::GetKeyFrames(wxString filename) {
std::vector<int> frames;
#ifdef __WINDOWS__
// Init vfw
@ -106,7 +106,7 @@ wxArrayInt VFWWrapper::GetKeyFrames(wxString filename) {
// Loop through stream
for (size_t i=0;i<frame_c;i++) {
if (AVIStreamIsKeyFrame(ppavi,(int)i)) {
frames.Add(i);
frames.push_back(i);
}
}

View File

@ -39,7 +39,9 @@
///////////
// Headers
#ifndef AGI_PRE
#include <vector>
#endif
/// DOCME
@ -49,7 +51,7 @@
/// DOCME
class VFWWrapper {
public:
static wxArrayInt GetKeyFrames(wxString filename);
static std::vector<int> GetKeyFrames(wxString filename);
};