Fix warnings about unused variables.
authorFriedemann Kleint <Friedemann.Kleint@digia.com>
Thu, 14 Feb 2013 11:00:46 +0000 (12:00 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 14 Feb 2013 12:24:58 +0000 (13:24 +0100)
Change-Id: I147ff8624faa98396d6c48801c41a731fd02ac10
Reviewed-by: Yoann Lopes <yoann.lopes@digia.com>
src/plugins/directshow/camera/dscameraservice.cpp
src/plugins/directshow/camera/dscamerasession.cpp
src/plugins/directshow/camera/dsimagecapturecontrol.h
src/plugins/directshow/camera/dsvideowidgetcontrol.cpp
src/plugins/directshow/player/directshowiosource.cpp
src/plugins/directshow/player/directshowplayerservice.cpp
src/plugins/directshow/player/videosurfacefilter.cpp

index fcbd1ef..8d5d67d 100644 (file)
@@ -119,6 +119,7 @@ QMediaControl* DSCameraService::requestControl(const char *name)
 
 void DSCameraService::releaseControl(QMediaControl *control)
 {
+    Q_UNUSED(control)
    // Implemented as a singleton, so we do nothing.
 }
 
index c82e300..0b3a4d5 100644 (file)
@@ -96,6 +96,8 @@ public:
 
     STDMETHODIMP SampleCB(double Time, IMediaSample *pSample)
     {
+        Q_UNUSED(Time)
+        Q_UNUSED(pSample)
         return E_NOTIMPL;
     }
 
index ff8dc9b..e15186c 100644 (file)
@@ -58,7 +58,7 @@ public:
     int capture(const QString &fileName);
 
     virtual QCameraImageCapture::DriveMode driveMode() const { return QCameraImageCapture::SingleImageCapture; }
-    virtual void setDriveMode(QCameraImageCapture::DriveMode mode) { }
+    virtual void setDriveMode(QCameraImageCapture::DriveMode mode) { Q_UNUSED(mode) }
 
     virtual void cancelCapture() {}
 
index 9008cef..1f2996f 100644 (file)
@@ -107,6 +107,7 @@ void DSVideoWidgetSurface::updateVideoRect()
 
 void DSVideoWidgetSurface::paint(QPainter *painter)
 {
+    Q_UNUSED(painter)
 }
 
 
index 7dc5f64..ee2ea86 100644 (file)
@@ -174,6 +174,7 @@ HRESULT DirectShowIOSource::GetClassID(CLSID *pClassID)
 // IMediaFilter
 HRESULT DirectShowIOSource::Run(REFERENCE_TIME tStart)
 {
+    Q_UNUSED(tStart)
     QMutexLocker locker(&m_mutex);
 
     m_state = State_Running;
index 8b09d81..94f4394 100644 (file)
@@ -357,6 +357,7 @@ void DirectShowPlayerService::doSetUrlSource(QMutexLocker *locker)
 
 void DirectShowPlayerService::doSetStreamSource(QMutexLocker *locker)
 {
+    Q_UNUSED(locker)
     DirectShowIOSource *source = new DirectShowIOSource(m_loop);
     source->setDevice(m_stream);
 
@@ -512,6 +513,7 @@ void DirectShowPlayerService::doRender(QMutexLocker *locker)
 
 void DirectShowPlayerService::doFinalizeLoad(QMutexLocker *locker)
 {
+    Q_UNUSED(locker)
     if (m_graphStatus != Loaded) {
         if (IMediaEvent *event = com_cast<IMediaEvent>(m_graph, IID_IMediaEvent)) {
             event->GetEventHandle(reinterpret_cast<OAEVENT *>(&m_eventHandle));
@@ -783,6 +785,7 @@ void DirectShowPlayerService::stop()
 
 void DirectShowPlayerService::doStop(QMutexLocker *locker)
 {
+    Q_UNUSED(locker)
     if (m_executedTasks & (Play | Pause)) {
         if (IMediaControl *control = com_cast<IMediaControl>(m_graph, IID_IMediaControl)) {
             control->Stop();
@@ -1002,6 +1005,7 @@ void DirectShowPlayerService::setAudioOutput(IBaseFilter *filter)
 
 void DirectShowPlayerService::doReleaseAudioOutput(QMutexLocker *locker)
 {
+    Q_UNUSED(locker)
     m_pendingTasks |= m_executedTasks & (Play | Pause);
 
     if (IMediaControl *control = com_cast<IMediaControl>(m_graph, IID_IMediaControl)) {
@@ -1075,6 +1079,7 @@ void DirectShowPlayerService::setVideoOutput(IBaseFilter *filter)
 
 void DirectShowPlayerService::doReleaseVideoOutput(QMutexLocker *locker)
 {
+    Q_UNUSED(locker)
     m_pendingTasks |= m_executedTasks & (Play | Pause);
 
     if (IMediaControl *control = com_cast<IMediaControl>(m_graph, IID_IMediaControl)) {
@@ -1170,6 +1175,7 @@ void DirectShowPlayerService::videoOutputChanged()
 
 void DirectShowPlayerService::graphEvent(QMutexLocker *locker)
 {
+    Q_UNUSED(locker)
     if (IMediaEvent *event = com_cast<IMediaEvent>(m_graph, IID_IMediaEvent)) {
         long eventCode;
         LONG_PTR param1;
index bdc2c80..1343885 100644 (file)
@@ -160,6 +160,7 @@ HRESULT VideoSurfaceFilter::Stop()
 
 HRESULT VideoSurfaceFilter::GetState(DWORD dwMilliSecsTimeout, FILTER_STATE *pState)
 {
+    Q_UNUSED(dwMilliSecsTimeout)
     if (!pState)
         return E_POINTER;
 
@@ -264,6 +265,8 @@ ULONG VideoSurfaceFilter::GetMiscFlags()
 
 HRESULT VideoSurfaceFilter::Connect(IPin *pReceivePin, const AM_MEDIA_TYPE *pmt)
 {
+    Q_UNUSED(pReceivePin)
+    Q_UNUSED(pmt)
     // This is an input pin, you shouldn't be calling Connect on it.
     return E_POINTER;
 }