summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2017-06-20 12:52:39 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2017-06-20 12:02:56 +0000
commit14c884d9cfb97d889af1ae17da903890e519275c (patch)
treec63102fe09c3b11c17282156826ffa836d6187b7 /src
parent121d88ee663ab3dffdcbc207135137c3fb0c8ef9 (diff)
DirectShow: Silence g++ warnings about missing initializers for AM_MEDIA_TYPE
Change-Id: I9f764077d257dadfe1641e9bd446b6939c381173 Reviewed-by: Christian Stromme <christian.stromme@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/directshow/player/directshowplayerservice.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/plugins/directshow/player/directshowplayerservice.cpp b/src/plugins/directshow/player/directshowplayerservice.cpp
index de427f78..905e03df 100644
--- a/src/plugins/directshow/player/directshowplayerservice.cpp
+++ b/src/plugins/directshow/player/directshowplayerservice.cpp
@@ -674,6 +674,9 @@ void DirectShowPlayerService::doReleaseGraph(QMutexLocker *locker)
m_loop->wake();
}
+QT_WARNING_PUSH
+QT_WARNING_DISABLE_GCC("-Wmissing-field-initializers")
+
void DirectShowPlayerService::doSetVideoProbe(QMutexLocker *locker)
{
Q_UNUSED(locker);
@@ -765,6 +768,8 @@ void DirectShowPlayerService::doSetAudioProbe(QMutexLocker *locker)
m_audioSampleGrabber->start(DirectShowSampleGrabber::CallbackMethod::BufferCB);
}
+QT_WARNING_POP
+
void DirectShowPlayerService::doReleaseVideoProbe(QMutexLocker *locker)
{
Q_UNUSED(locker);
@@ -1444,6 +1449,9 @@ void DirectShowPlayerService::videoOutputChanged()
setVideoOutput(m_videoRendererControl->filter());
}
+QT_WARNING_PUSH
+QT_WARNING_DISABLE_GCC("-Wmissing-field-initializers")
+
void DirectShowPlayerService::onAudioBufferAvailable(double time, quint8 *buffer, long len)
{
QMutexLocker locker(&m_mutex);
@@ -1535,6 +1543,8 @@ void DirectShowPlayerService::onVideoBufferAvailable(double time, quint8 *buffer
Q_EMIT m_videoProbeControl->videoFrameProbed(frame);
}
+QT_WARNING_POP
+
void DirectShowPlayerService::graphEvent(QMutexLocker *locker)
{
Q_UNUSED(locker)