diff options
| author | 2016-05-08 02:36:03 +0100 | |
|---|---|---|
| committer | 2016-05-08 02:37:37 +0100 | |
| commit | 5f0292c32b336be0bb279a7511a9ee37ba9df3fa (patch) | |
| tree | 28dbeb31c6c6aa730b2c79e904633148aff301cc /src/modules/dcc/DccVideoWindow.cpp | |
| parent | cleanup: separators and spacing (diff) | |
| download | KVIrc-5f0292c32b336be0bb279a7511a9ee37ba9df3fa.tar.gz KVIrc-5f0292c32b336be0bb279a7511a9ee37ba9df3fa.tar.bz2 KVIrc-5f0292c32b336be0bb279a7511a9ee37ba9df3fa.zip | |
cleanup: remove more ancient commented code p3
Diffstat (limited to 'src/modules/dcc/DccVideoWindow.cpp')
| -rw-r--r-- | src/modules/dcc/DccVideoWindow.cpp | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/modules/dcc/DccVideoWindow.cpp b/src/modules/dcc/DccVideoWindow.cpp index 3cedf19af..ea19273fb 100644 --- a/src/modules/dcc/DccVideoWindow.cpp +++ b/src/modules/dcc/DccVideoWindow.cpp @@ -291,17 +291,6 @@ bool DccVideoThread::handleIncomingData(KviDccThreadIncomingData * data, bool bC void DccVideoThread::restartRecording(int iDevice, int iInput, int) { m_bRecording = false; - /* - if(!g_pVideoDevicePool) - g_pVideoDevicePool = Kopete::AV::VideoDevicePool::self(); - - g_pVideoDevicePool->stopCapturing(); - if (EXIT_SUCCESS != g_pVideoDevicePool->open(iDevice)) return; - g_pVideoDevicePool->setImageSize(320, 240); - if(iInput >= 0) - g_pVideoDevicePool->selectInput(iInput); - g_pVideoDevicePool->startCapturing(); -*/ m_bRecording = true; } @@ -311,9 +300,6 @@ void DccVideoThread::startRecording() if(m_bRecording) return; // already started - //ensure capturing - // g_pVideoDevicePool->startCapturing(); - //qDebug("Posting event"); KviThreadDataEvent<int> * e = new KviThreadDataEvent<int>(KVI_DCC_THREAD_EVENT_ACTION); e->setData(new int(KVI_DCC_VIDEO_THREAD_ACTION_START_RECORDING)); @@ -938,16 +924,12 @@ bool DccVideoWindow::event(QEvent * e) switch(*act) { case KVI_DCC_VIDEO_THREAD_ACTION_START_RECORDING: - // m_pRecordingLabel->setEnabled(true); break; case KVI_DCC_VIDEO_THREAD_ACTION_STOP_RECORDING: - // m_pRecordingLabel->setEnabled(false); break; case KVI_DCC_VIDEO_THREAD_ACTION_START_PLAYING: - // m_pPlayingLabel->setEnabled(true); break; case KVI_DCC_VIDEO_THREAD_ACTION_STOP_PLAYING: - // m_pPlayingLabel->setEnabled(false); break; case KVI_DCC_VIDEO_THREAD_ACTION_GRAB_FRAME: m_pCameraView->render(m_pCameraImage); @@ -993,19 +975,7 @@ void DccVideoWindow::connected() output(KVI_OUT_DCCMSG, __tr2qs_ctx("Actual codec used is '%s'", "dcc"), opt->pCodec->name()); m_pSlaveThread = new DccVideoThread(this, m_pMarshal->releaseSocket(), opt); - /* -#ifndef COMPILE_DISABLE_DCC_VIDEO - if(g_pVideoDevicePool) - { - g_pVideoDevicePool->fillDeviceQComboBox(m_pCDevices); - g_pVideoDevicePool->fillInputQComboBox(m_pCInputs); - g_pVideoDevicePool->fillStandardQComboBox(m_pCStandards); - connect(g_pVideoDevicePool, SIGNAL(deviceRegistered(const QString &) ), SLOT(deviceRegistered(const QString &)) ); - connect(g_pVideoDevicePool, SIGNAL(deviceUnregistered(const QString &) ), SLOT(deviceUnregistered(const QString &)) ); - } -#endif -*/ m_pSlaveThread->start(); } |
