Qt: Work around Qt DirectShow bug (fixes #829)
Vicki Pfau vi@endrift.com
Fri, 28 Jul 2017 18:30:15 -0700
1 files changed,
5 insertions(+),
0 deletions(-)
jump to
M
src/platform/qt/VideoDumper.cpp
→
src/platform/qt/VideoDumper.cpp
@@ -37,7 +37,12 @@ QImage image(bits, mappedFrame.width(), mappedFrame.height(), mappedFrame.bytesPerLine(), format);
if (swap) { image = image.rgbSwapped(); } else { +#ifdef Q_OS_WIN + // Qt's DirectShow plug-in is pretty dang buggy + image = image.mirrored(true); +#else image = image.copy(); // Create a deep copy of the bits +#endif } mappedFrame.unmap(); emit imageAvailable(image);