diff options
Diffstat (limited to 'kopete/libkopete')
-rw-r--r-- | kopete/libkopete/avdevice/configure.in.in | 22 | ||||
-rw-r--r-- | kopete/libkopete/avdevice/videodevice.cpp | 4 | ||||
-rw-r--r-- | kopete/libkopete/avdevice/videodevice.h | 4 |
3 files changed, 28 insertions, 2 deletions
diff --git a/kopete/libkopete/avdevice/configure.in.in b/kopete/libkopete/avdevice/configure.in.in index 34dd7523..4a446c03 100644 --- a/kopete/libkopete/avdevice/configure.in.in +++ b/kopete/libkopete/avdevice/configure.in.in @@ -19,3 +19,25 @@ fi AC_MSG_RESULT($ac_have_libv4l1_videodev_h) # -- End libv4l1-videodev.h ---------------------------------------------- + +# -- Check for installed videodev headers -------------------- + +AC_MSG_CHECKING([for videodev.h]) + +AC_TRY_COMPILE([ +#include <linux/videodev.h> +], +[ +], + ac_have_videodev_h=yes +, + ac_have_videodev_h=no +) + +if test $ac_have_videodev_h = yes; then + AC_DEFINE(HAVE_LINUX_VIDEODEV_H, 1, [Define if you have videodev.h installed]) +fi + +AC_MSG_RESULT($ac_have_videodev_h) + +# -- End videodev ---------------------------------------------- diff --git a/kopete/libkopete/avdevice/videodevice.cpp b/kopete/libkopete/avdevice/videodevice.cpp index e12fb02f..1df1220f 100644 --- a/kopete/libkopete/avdevice/videodevice.cpp +++ b/kopete/libkopete/avdevice/videodevice.cpp @@ -2237,7 +2237,11 @@ TQString VideoDevice::pixelFormatName(int pixelformat) int VideoDevice::detectPixelFormats() { +#if defined(__linux__) && defined(ENABLE_AV) +#ifdef V4L2_CAP_VIDEO_CAPTURE int err = 0; +#endif +#endif switch(m_driver) { #if defined(__linux__) && defined(ENABLE_AV) diff --git a/kopete/libkopete/avdevice/videodevice.h b/kopete/libkopete/avdevice/videodevice.h index 7e575138..61bd8844 100644 --- a/kopete/libkopete/avdevice/videodevice.h +++ b/kopete/libkopete/avdevice/videodevice.h @@ -295,11 +295,11 @@ public: void enumerateMenu (void); #endif -#ifndef ENABLE_AV +#ifdef ENABLE_AV struct video_capability V4L_capabilities; struct video_buffer V4L_videobuffer; #endif -#endif +#endif TQValueVector<Kopete::AV::VideoInput> m_input; TQValueVector<Kopete::AV::VideoControl> m_control; // TQFile file; |