Fix flipped video when switching between avs and ffms2 providers

Originally committed to SVN as r4814.
This commit is contained in:
Thomas Goyne 2010-10-16 20:11:43 +00:00
parent f7f7699aed
commit 3c02917e20

View file

@ -128,12 +128,12 @@ void VideoOutGL::DetectOpenGLCapabilities() {
void VideoOutGL::InitTextures(int width, int height, GLenum format, int bpp, bool flipped) {
using namespace std;
frameFlipped = flipped;
// Do nothing if the frame size and format are unchanged
if (width == frameWidth && height == frameHeight && format == frameFormat) return;
if (width == frameWidth && height == frameHeight && format == frameFormat && flipped == frameFlipped) return;
frameWidth = width;
frameHeight = height;
frameFormat = format;
frameFlipped = flipped;
LOG_I("video/out/gl") << "Video size: " << width << "x" << height;
DetectOpenGLCapabilities();