mirror of https://github.com/odrling/Aegisub
Fixed lavc and directshow video providers.
Originally committed to SVN as r1932.
This commit is contained in:
parent
1b5175ef97
commit
30f12ef7e8
|
@ -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.");
|
||||
}
|
||||
|
|
|
@ -114,6 +114,7 @@ public:
|
|||
bool IsNativelyByFrames() { return false; }
|
||||
|
||||
void OverrideFrameTimeList(wxArrayInt list);
|
||||
int GetDesiredCacheSize() { return 8; }
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -73,7 +73,6 @@ LAVCVideoProvider::LAVCVideoProvider(wxString filename,double fps) {
|
|||
validFrame = false;
|
||||
|
||||
// Load
|
||||
SetCacheMax(8);
|
||||
LoadVideo(filename,fps);
|
||||
}
|
||||
|
||||
|
|
|
@ -106,6 +106,7 @@ public:
|
|||
double GetFPS();
|
||||
wxString GetDecoderName() { return _T("FFMpeg/libavcodec"); }
|
||||
bool IsNativelyByFrames() { return true; }
|
||||
int GetDesiredCacheSize() { return 8; }
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue