diff -ur kvirc-4.1_pre4624.orig/src/kvilib/ext/avdevice/videodevicepool.cpp kvirc-4.1_pre4624/src/kvilib/ext/avdevice/videodevicepool.cpp --- kvirc-4.1_pre4624.orig/src/kvilib/ext/avdevice/videodevicepool.cpp 2010-07-06 19:11:34.000000000 +0300 +++ kvirc-4.1_pre4624/src/kvilib/ext/avdevice/videodevicepool.cpp 2010-07-07 10:40:22.000000000 +0300 @@ -95,6 +95,7 @@ qDebug() << "Device not found."; return EXIT_FAILURE; } + #ifdef COMPILE_KDE_SUPPORT if (device < 0) { qDebug() << "Trying to load saved device."; @@ -108,6 +109,7 @@ qDebug() << "Saved device is not available, using default device:" << device; } } + #endif int isopen = EXIT_FAILURE; if ((device != m_current_device) || !isOpen()) { @@ -119,12 +121,14 @@ return EXIT_FAILURE; } isopen = m_videodevices[device]->open(); + #ifdef COMPILE_KDE_SUPPORT if (isopen == EXIT_SUCCESS) { m_current_device = device; loadDeviceConfig(); // Load and apply device parameters m_clients++; } + #endif } else { @@ -592,6 +596,7 @@ \fn int Kopete::AV::VideoDevicePool::getSavedDevice() \brief Returns the index of the saved device */ +#ifdef COMPILE_KDE_SUPPORT int VideoDevicePool::getSavedDevice() { qDebug() << "called"; @@ -764,6 +769,7 @@ } /* TODO: save signal standard */ } +#endif void VideoDevicePool::deviceAdded( const QString & udi ) {