Fix warnings about unused variables.
Change-Id: I147ff8624faa98396d6c48801c41a731fd02ac10 Reviewed-by: Yoann Lopes <yoann.lopes@digia.com>
This commit is contained in:
committed by
The Qt Project
parent
fc62718e98
commit
41dc5467bf
@@ -119,6 +119,7 @@ QMediaControl* DSCameraService::requestControl(const char *name)
|
|||||||
|
|
||||||
void DSCameraService::releaseControl(QMediaControl *control)
|
void DSCameraService::releaseControl(QMediaControl *control)
|
||||||
{
|
{
|
||||||
|
Q_UNUSED(control)
|
||||||
// Implemented as a singleton, so we do nothing.
|
// Implemented as a singleton, so we do nothing.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -96,6 +96,8 @@ public:
|
|||||||
|
|
||||||
STDMETHODIMP SampleCB(double Time, IMediaSample *pSample)
|
STDMETHODIMP SampleCB(double Time, IMediaSample *pSample)
|
||||||
{
|
{
|
||||||
|
Q_UNUSED(Time)
|
||||||
|
Q_UNUSED(pSample)
|
||||||
return E_NOTIMPL;
|
return E_NOTIMPL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ public:
|
|||||||
int capture(const QString &fileName);
|
int capture(const QString &fileName);
|
||||||
|
|
||||||
virtual QCameraImageCapture::DriveMode driveMode() const { return QCameraImageCapture::SingleImageCapture; }
|
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() {}
|
virtual void cancelCapture() {}
|
||||||
|
|
||||||
|
|||||||
@@ -107,6 +107,7 @@ void DSVideoWidgetSurface::updateVideoRect()
|
|||||||
|
|
||||||
void DSVideoWidgetSurface::paint(QPainter *painter)
|
void DSVideoWidgetSurface::paint(QPainter *painter)
|
||||||
{
|
{
|
||||||
|
Q_UNUSED(painter)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -174,6 +174,7 @@ HRESULT DirectShowIOSource::GetClassID(CLSID *pClassID)
|
|||||||
// IMediaFilter
|
// IMediaFilter
|
||||||
HRESULT DirectShowIOSource::Run(REFERENCE_TIME tStart)
|
HRESULT DirectShowIOSource::Run(REFERENCE_TIME tStart)
|
||||||
{
|
{
|
||||||
|
Q_UNUSED(tStart)
|
||||||
QMutexLocker locker(&m_mutex);
|
QMutexLocker locker(&m_mutex);
|
||||||
|
|
||||||
m_state = State_Running;
|
m_state = State_Running;
|
||||||
|
|||||||
@@ -357,6 +357,7 @@ void DirectShowPlayerService::doSetUrlSource(QMutexLocker *locker)
|
|||||||
|
|
||||||
void DirectShowPlayerService::doSetStreamSource(QMutexLocker *locker)
|
void DirectShowPlayerService::doSetStreamSource(QMutexLocker *locker)
|
||||||
{
|
{
|
||||||
|
Q_UNUSED(locker)
|
||||||
DirectShowIOSource *source = new DirectShowIOSource(m_loop);
|
DirectShowIOSource *source = new DirectShowIOSource(m_loop);
|
||||||
source->setDevice(m_stream);
|
source->setDevice(m_stream);
|
||||||
|
|
||||||
@@ -512,6 +513,7 @@ void DirectShowPlayerService::doRender(QMutexLocker *locker)
|
|||||||
|
|
||||||
void DirectShowPlayerService::doFinalizeLoad(QMutexLocker *locker)
|
void DirectShowPlayerService::doFinalizeLoad(QMutexLocker *locker)
|
||||||
{
|
{
|
||||||
|
Q_UNUSED(locker)
|
||||||
if (m_graphStatus != Loaded) {
|
if (m_graphStatus != Loaded) {
|
||||||
if (IMediaEvent *event = com_cast<IMediaEvent>(m_graph, IID_IMediaEvent)) {
|
if (IMediaEvent *event = com_cast<IMediaEvent>(m_graph, IID_IMediaEvent)) {
|
||||||
event->GetEventHandle(reinterpret_cast<OAEVENT *>(&m_eventHandle));
|
event->GetEventHandle(reinterpret_cast<OAEVENT *>(&m_eventHandle));
|
||||||
@@ -783,6 +785,7 @@ void DirectShowPlayerService::stop()
|
|||||||
|
|
||||||
void DirectShowPlayerService::doStop(QMutexLocker *locker)
|
void DirectShowPlayerService::doStop(QMutexLocker *locker)
|
||||||
{
|
{
|
||||||
|
Q_UNUSED(locker)
|
||||||
if (m_executedTasks & (Play | Pause)) {
|
if (m_executedTasks & (Play | Pause)) {
|
||||||
if (IMediaControl *control = com_cast<IMediaControl>(m_graph, IID_IMediaControl)) {
|
if (IMediaControl *control = com_cast<IMediaControl>(m_graph, IID_IMediaControl)) {
|
||||||
control->Stop();
|
control->Stop();
|
||||||
@@ -1002,6 +1005,7 @@ void DirectShowPlayerService::setAudioOutput(IBaseFilter *filter)
|
|||||||
|
|
||||||
void DirectShowPlayerService::doReleaseAudioOutput(QMutexLocker *locker)
|
void DirectShowPlayerService::doReleaseAudioOutput(QMutexLocker *locker)
|
||||||
{
|
{
|
||||||
|
Q_UNUSED(locker)
|
||||||
m_pendingTasks |= m_executedTasks & (Play | Pause);
|
m_pendingTasks |= m_executedTasks & (Play | Pause);
|
||||||
|
|
||||||
if (IMediaControl *control = com_cast<IMediaControl>(m_graph, IID_IMediaControl)) {
|
if (IMediaControl *control = com_cast<IMediaControl>(m_graph, IID_IMediaControl)) {
|
||||||
@@ -1075,6 +1079,7 @@ void DirectShowPlayerService::setVideoOutput(IBaseFilter *filter)
|
|||||||
|
|
||||||
void DirectShowPlayerService::doReleaseVideoOutput(QMutexLocker *locker)
|
void DirectShowPlayerService::doReleaseVideoOutput(QMutexLocker *locker)
|
||||||
{
|
{
|
||||||
|
Q_UNUSED(locker)
|
||||||
m_pendingTasks |= m_executedTasks & (Play | Pause);
|
m_pendingTasks |= m_executedTasks & (Play | Pause);
|
||||||
|
|
||||||
if (IMediaControl *control = com_cast<IMediaControl>(m_graph, IID_IMediaControl)) {
|
if (IMediaControl *control = com_cast<IMediaControl>(m_graph, IID_IMediaControl)) {
|
||||||
@@ -1170,6 +1175,7 @@ void DirectShowPlayerService::videoOutputChanged()
|
|||||||
|
|
||||||
void DirectShowPlayerService::graphEvent(QMutexLocker *locker)
|
void DirectShowPlayerService::graphEvent(QMutexLocker *locker)
|
||||||
{
|
{
|
||||||
|
Q_UNUSED(locker)
|
||||||
if (IMediaEvent *event = com_cast<IMediaEvent>(m_graph, IID_IMediaEvent)) {
|
if (IMediaEvent *event = com_cast<IMediaEvent>(m_graph, IID_IMediaEvent)) {
|
||||||
long eventCode;
|
long eventCode;
|
||||||
LONG_PTR param1;
|
LONG_PTR param1;
|
||||||
|
|||||||
@@ -160,6 +160,7 @@ HRESULT VideoSurfaceFilter::Stop()
|
|||||||
|
|
||||||
HRESULT VideoSurfaceFilter::GetState(DWORD dwMilliSecsTimeout, FILTER_STATE *pState)
|
HRESULT VideoSurfaceFilter::GetState(DWORD dwMilliSecsTimeout, FILTER_STATE *pState)
|
||||||
{
|
{
|
||||||
|
Q_UNUSED(dwMilliSecsTimeout)
|
||||||
if (!pState)
|
if (!pState)
|
||||||
return E_POINTER;
|
return E_POINTER;
|
||||||
|
|
||||||
@@ -264,6 +265,8 @@ ULONG VideoSurfaceFilter::GetMiscFlags()
|
|||||||
|
|
||||||
HRESULT VideoSurfaceFilter::Connect(IPin *pReceivePin, const AM_MEDIA_TYPE *pmt)
|
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.
|
// This is an input pin, you shouldn't be calling Connect on it.
|
||||||
return E_POINTER;
|
return E_POINTER;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user