diff options
author | Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com> | 2010-07-22 02:42:34 (GMT) |
---|---|---|
committer | Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com> | 2010-07-22 02:42:34 (GMT) |
commit | 51cf737151c1c446a9ce77832774202b6bdb4ba2 (patch) | |
tree | 4f0eb2e1d3a5e6a516c7d085775a6ae2cf242d4c /src/multimedia | |
parent | a1a3535cd45819bd54310791bdcc1cec43f38b63 (diff) | |
download | Qt-51cf737151c1c446a9ce77832774202b6bdb4ba2.zip Qt-51cf737151c1c446a9ce77832774202b6bdb4ba2.tar.gz Qt-51cf737151c1c446a9ce77832774202b6bdb4ba2.tar.bz2 |
Fixed QVideoSurfaceFormat::isValid()
Trivial fix, valid formats have pixel format != Invalid, not ==.
Task-number: QTBUG-12337
Reviewed-by: Andrew den Exter
Diffstat (limited to 'src/multimedia')
-rw-r--r-- | src/multimedia/video/qvideosurfaceformat.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/multimedia/video/qvideosurfaceformat.cpp b/src/multimedia/video/qvideosurfaceformat.cpp index 1fc13a6..3afbdc9 100644 --- a/src/multimedia/video/qvideosurfaceformat.cpp +++ b/src/multimedia/video/qvideosurfaceformat.cpp @@ -252,7 +252,7 @@ QVideoSurfaceFormat::~QVideoSurfaceFormat() bool QVideoSurfaceFormat::isValid() const { - return d->pixelFormat == QVideoFrame::Format_Invalid && d->frameSize.isValid(); + return d->pixelFormat != QVideoFrame::Format_Invalid && d->frameSize.isValid(); } /*! |