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
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user