summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorRohan McGovern <rohan.mcgovern@nokia.com>2011-07-21 09:36:12 +1000
committerQt by Nokia <qt-info@nokia.com>2011-07-21 02:20:28 +0200
commit01dac3cf55502d0a73490cd54ada14a84887901b (patch)
treef4320131ee9d96bc1dd6007fc4a3467639ed9c6d /src/plugins
parent4271cbcaf19e9f9136877400de7621542b1fd70c (diff)
Fixed compile; removed useless use of qRound with integers
qRound of an integer type never made sense. Since 2dcd3939a8bd5ff743e4c87f87b2d81b1a101467 in qtbase, it won't compile any more. Change-Id: Ia30334bc92236d0fef9b6ac99d65bae4fe79dc57 Reviewed-on: http://codereview.qt.nokia.com/1905 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/gstreamer/qgstutils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/gstreamer/qgstutils.cpp b/src/plugins/gstreamer/qgstutils.cpp
index 45e90d906..6f0194f24 100644
--- a/src/plugins/gstreamer/qgstutils.cpp
+++ b/src/plugins/gstreamer/qgstutils.cpp
@@ -157,7 +157,7 @@ QSize QGstUtils::capsCorrectedResolution(const GstCaps *caps)
if (!size.isEmpty() && gst_structure_get_fraction(
structure, "pixel-aspect-ratio", &aspectNum, &aspectDenum)) {
if (aspectDenum > 0)
- size.setWidth(qRound(size.width()*aspectNum/aspectDenum));
+ size.setWidth(size.width()*aspectNum/aspectDenum);
}
}