Fix MinGW-warnings about mismatched types.
Change-Id: I6170e3aa49f5b60ba68c1ef5bb2c6c7ec6688060 Reviewed-by: Yoann Lopes <yoann.lopes@digia.com>
This commit is contained in:
committed by
The Qt Project
parent
033d5859d2
commit
4fc974fdef
@@ -628,7 +628,7 @@ bool DirectShowRcSource::open(const QUrl &url)
|
||||
qDebug("qrc file %s", qPrintable(m_file.fileName()));
|
||||
|
||||
if (m_file.open(QIODevice::ReadOnly)) {
|
||||
qDebug("Size %d", m_file.size());
|
||||
qDebug("Size %d", int(m_file.size()));
|
||||
qDebug("Sequential %d", int(m_file.isSequential()));
|
||||
|
||||
setDevice(&m_file);
|
||||
|
||||
@@ -198,7 +198,7 @@ HRESULT DirectShowMediaTypeList::nextMediaType(
|
||||
if (fetchedCount)
|
||||
*fetchedCount = boundedCount;
|
||||
|
||||
return boundedCount == count ? S_OK : S_FALSE;
|
||||
return boundedCount == int(count) ? S_OK : S_FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -550,19 +550,20 @@ HRESULT VideoSurfaceFilter::cloneMediaType(int token, int index, IEnumMediaTypes
|
||||
|
||||
void VideoSurfaceFilter::customEvent(QEvent *event)
|
||||
{
|
||||
if (event->type() == StartSurface) {
|
||||
const int type = event->type();
|
||||
if (type == StartSurface) {
|
||||
QMutexLocker locker(&m_mutex);
|
||||
|
||||
m_startResult = start();
|
||||
|
||||
m_wait.wakeAll();
|
||||
} else if (event->type() == StopSurface) {
|
||||
} else if (type == StopSurface) {
|
||||
QMutexLocker locker(&m_mutex);
|
||||
|
||||
stop();
|
||||
|
||||
m_wait.wakeAll();
|
||||
} else if (event->type() == FlushSurface) {
|
||||
} else if (type == FlushSurface) {
|
||||
QMutexLocker locker(&m_mutex);
|
||||
|
||||
flush();
|
||||
|
||||
Reference in New Issue
Block a user