summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2010-03-05 12:48:26 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2010-03-05 12:48:26 (GMT)
commit8d5c19f024c55fca61c9cb343180e9db9d79929a (patch)
treee400285c95374df1519abb4a13af82c2ae8c3182
parent267d7ed88d72d2fb3230a1ba5c3aa6b41f9ac79a (diff)
parenta8b5200403742272811f095c0710193a27eed466 (diff)
downloadQt-8d5c19f024c55fca61c9cb343180e9db9d79929a.zip
Qt-8d5c19f024c55fca61c9cb343180e9db9d79929a.tar.gz
Qt-8d5c19f024c55fca61c9cb343180e9db9d79929a.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-multimedia-staging into 4.7-integration
* '4.7' of scm.dev.nokia.troll.no:qt/qt-multimedia-staging: Fix spelling in enumeration. Fixed compiler warning QuickTime movie view output: emit the natural size changes
-rw-r--r--src/multimedia/base/qmediaserviceprovider.cpp4
-rw-r--r--src/multimedia/base/qtmedianamespace.h2
-rw-r--r--src/multimedia/base/qtmedianamespace.qdoc2
-rw-r--r--src/plugins/mediaservices/qt7/qt7movieviewoutput.mm6
-rw-r--r--tests/auto/qmediaserviceprovider/tst_qmediaserviceprovider.cpp2
5 files changed, 10 insertions, 6 deletions
diff --git a/src/multimedia/base/qmediaserviceprovider.cpp b/src/multimedia/base/qmediaserviceprovider.cpp
index 6e11079..b089b39 100644
--- a/src/multimedia/base/qmediaserviceprovider.cpp
+++ b/src/multimedia/base/qmediaserviceprovider.cpp
@@ -350,7 +350,7 @@ public:
estimate = currentEstimate;
plugin = currentPlugin;
- if (currentEstimate == QtMultimedia::PreferedService)
+ if (currentEstimate == QtMultimedia::PreferredService)
break;
}
}
@@ -426,7 +426,7 @@ public:
allServicesProvideInterface = false;
}
- //don't return PreferedService
+ //don't return PreferredService
supportEstimate = qMin(supportEstimate, QtMultimedia::ProbablySupported);
//Return NotSupported only if no services are available of serviceType
diff --git a/src/multimedia/base/qtmedianamespace.h b/src/multimedia/base/qtmedianamespace.h
index 2a56fc3..fe20a05 100644
--- a/src/multimedia/base/qtmedianamespace.h
+++ b/src/multimedia/base/qtmedianamespace.h
@@ -152,7 +152,7 @@ namespace QtMultimedia
NotSupported,
MaybeSupported,
ProbablySupported,
- PreferedService
+ PreferredService
};
enum EncodingQuality
diff --git a/src/multimedia/base/qtmedianamespace.qdoc b/src/multimedia/base/qtmedianamespace.qdoc
index 270c7d6..58e9c92 100644
--- a/src/multimedia/base/qtmedianamespace.qdoc
+++ b/src/multimedia/base/qtmedianamespace.qdoc
@@ -172,7 +172,7 @@
\value NotSupported The feature is not supported.
\value MaybeSupported The feature may be supported.
\value ProbablySupported The feature is probably supported.
- \value PreferedService The service is the preferred provider of a service.
+ \value PreferredService The service is the preferred provider of a service.
*/
/*!
diff --git a/src/plugins/mediaservices/qt7/qt7movieviewoutput.mm b/src/plugins/mediaservices/qt7/qt7movieviewoutput.mm
index b90470c..254af46 100644
--- a/src/plugins/mediaservices/qt7/qt7movieviewoutput.mm
+++ b/src/plugins/mediaservices/qt7/qt7movieviewoutput.mm
@@ -60,6 +60,7 @@
- (TransparentQTMovieView *) init;
- (void) setDrawRect:(QRect &)rect;
+- (CIImage *) view:(QTMovieView *)view willDisplayImage:(CIImage *)img;
- (void) setContrast:(qreal) contrast;
@end
@@ -201,7 +202,10 @@ void QT7MovieViewOutput::setMovie(void *movie)
void QT7MovieViewOutput::updateNaturalSize(const QSize &newSize)
{
- m_nativeSize = newSize;
+ if (m_nativeSize != newSize) {
+ m_nativeSize = newSize;
+ emit nativeSizeChanged();
+ }
}
WId QT7MovieViewOutput::winId() const
diff --git a/tests/auto/qmediaserviceprovider/tst_qmediaserviceprovider.cpp b/tests/auto/qmediaserviceprovider/tst_qmediaserviceprovider.cpp
index d839fe5..06a8f60 100644
--- a/tests/auto/qmediaserviceprovider/tst_qmediaserviceprovider.cpp
+++ b/tests/auto/qmediaserviceprovider/tst_qmediaserviceprovider.cpp
@@ -152,7 +152,7 @@ public:
Q_UNUSED(codecs);
if (mimeType == "audio/wav")
- return QtMultimedia::PreferedService;
+ return QtMultimedia::PreferredService;
return QtMultimedia::NotSupported;
}