possible fix to dshow with shaders off.

Originally committed to SVN as r903.
This commit is contained in:
Rodrigo Braz Monteiro 2007-01-27 15:25:53 +00:00
parent d92222294e
commit e07a71368b
1 changed files with 1 additions and 1 deletions

View File

@ -295,7 +295,7 @@ HRESULT DirectShowVideoProvider::OpenVideo(wxString _filename) {
// Set allowed types for sink
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);
// Pass the event to sink, so it gets set when a frame is available