Fixed lavc and directshow video providers.

Originally committed to SVN as r1932.
This commit is contained in:
Rodrigo Braz Monteiro 2008-03-06 22:34:28 +00:00
parent 1b5175ef97
commit 30f12ef7e8
4 changed files with 2 additions and 2 deletions

View file

@ -139,7 +139,6 @@ DirectShowVideoProvider::DirectShowVideoProvider(wxString _filename, double _fps
fps = _fps;
m_registered = false;
m_hFrameReady = CreateEvent(NULL, FALSE, FALSE, NULL);
SetCacheMax(8);
HRESULT hr = OpenVideo(_filename);
if (FAILED(hr)) throw _T("Failed opening DirectShow content.");
}

View file

@ -114,6 +114,7 @@ public:
bool IsNativelyByFrames() { return false; }
void OverrideFrameTimeList(wxArrayInt list);
int GetDesiredCacheSize() { return 8; }
};

View file

@ -73,7 +73,6 @@ LAVCVideoProvider::LAVCVideoProvider(wxString filename,double fps) {
validFrame = false;
// Load
SetCacheMax(8);
LoadVideo(filename,fps);
}

View file

@ -106,6 +106,7 @@ public:
double GetFPS();
wxString GetDecoderName() { return _T("FFMpeg/libavcodec"); }
bool IsNativelyByFrames() { return true; }
int GetDesiredCacheSize() { return 8; }
};