summaryrefslogtreecommitdiffstats
path: root/kopete/libkopete/avdevice/videodevice.h
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-07-26 12:33:42 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-07-26 12:33:42 -0500
commitd8cbbab802a063679a4db5cebc73122cdb1da100 (patch)
treec41bd7338c21b2ad8aca7d68ca81ef27f8a032b3 /kopete/libkopete/avdevice/videodevice.h
parent35c41f35b08e981caa062f963ad2611ee6ef35a9 (diff)
downloadtdenetwork-d8cbbab802a063679a4db5cebc73122cdb1da100.tar.gz
tdenetwork-d8cbbab802a063679a4db5cebc73122cdb1da100.zip
Use libv4l if available, otherwise check for v4l1 headers
Diffstat (limited to 'kopete/libkopete/avdevice/videodevice.h')
-rw-r--r--kopete/libkopete/avdevice/videodevice.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/kopete/libkopete/avdevice/videodevice.h b/kopete/libkopete/avdevice/videodevice.h
index 7bba507e..7e575138 100644
--- a/kopete/libkopete/avdevice/videodevice.h
+++ b/kopete/libkopete/avdevice/videodevice.h
@@ -15,11 +15,11 @@
*************************************************************************
*/
-#define ENABLE_AV
-
#ifndef KOPETE_AVVIDEODEVICELISTITEM_H
#define KOPETE_AVVIDEODEVICELISTITEM_H
+#define ENABLE_AV
+
#if defined HAVE_CONFIG_H
#include <config.h>
#endif
@@ -54,8 +54,10 @@
#include <linux/kernel.h>
#if defined(HAVE_LIBV4L1_VIDEODEV_H)
#include <libv4l1-videodev.h>
-#else
+#elif defined(HAVE_LINUX_VIDEODEV_H)
#include <linux/videodev.h>
+#else
+#undef ENABLE_AV
#endif
#define VIDEO_MODE_PAL_Nc 3
#define VIDEO_MODE_PAL_M 4
@@ -293,8 +295,10 @@ public:
void enumerateMenu (void);
#endif
+#ifndef ENABLE_AV
struct video_capability V4L_capabilities;
struct video_buffer V4L_videobuffer;
+#endif
#endif
TQValueVector<Kopete::AV::VideoInput> m_input;
TQValueVector<Kopete::AV::VideoControl> m_control;