forked from mia/Aegisub
possible fix to dshow with shaders off.
Originally committed to SVN as r903.
This commit is contained in:
parent
d92222294e
commit
e07a71368b
1 changed files with 1 additions and 1 deletions
|
@ -295,7 +295,7 @@ HRESULT DirectShowVideoProvider::OpenVideo(wxString _filename) {
|
||||||
|
|
||||||
// Set allowed types for sink
|
// Set allowed types for sink
|
||||||
unsigned int types = IVS_RGB24 | IVS_RGB32;
|
unsigned int types = IVS_RGB24 | IVS_RGB32;
|
||||||
if (OpenGLWrapper::ShadersAvailable() && !Options.AsBool(_T("Video Use Pixel Shaders"))) types = types | IVS_YV12;
|
if (OpenGLWrapper::UseShaders()) types = types | IVS_YV12;
|
||||||
sink->SetAllowedTypes(types);
|
sink->SetAllowedTypes(types);
|
||||||
|
|
||||||
// Pass the event to sink, so it gets set when a frame is available
|
// Pass the event to sink, so it gets set when a frame is available
|
||||||
|
|
Loading…
Reference in a new issue