Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
898d8abc
Commit
898d8abc
authored
Jul 14, 2011
by
Rafał Mużyło
Committed by
Alexandre Julliard
Jul 14, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avicap32: Drop v4l1 support.
parent
2b7c6a95
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
27 deletions
+15
-27
configure
configure
+5
-4
configure.ac
configure.ac
+1
-1
avicap32_main.c
dlls/avicap32/avicap32_main.c
+6
-22
config.h.in
include/config.h.in
+3
-0
No files found.
configure
View file @
898d8abc
...
@@ -6133,9 +6133,10 @@ fi
...
@@ -6133,9 +6133,10 @@ fi
done
done
for
ac_header
in
linux/videodev.h
for
ac_header
in
linux/videodev.h
linux/videodev2.h
do
:
do
:
ac_fn_c_check_header_compile
"
$LINENO
"
"linux/videodev.h"
"ac_cv_header_linux_videodev_h"
"#ifdef HAVE_SYS_TIME_H
as_ac_Header
=
`
$as_echo
"ac_cv_header_
$ac_header
"
|
$as_tr_sh
`
ac_fn_c_check_header_compile
"
$LINENO
"
"
$ac_header
"
"
$as_ac_Header
"
"#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#include <sys/time.h>
#endif
#endif
#include <sys/types.h>
#include <sys/types.h>
...
@@ -6143,9 +6144,9 @@ do :
...
@@ -6143,9 +6144,9 @@ do :
#include <asm/types.h>
#include <asm/types.h>
#endif
#endif
"
"
if
test
"x
$ac_cv_header_linux_videodev_h
"
=
xyes
;
then
:
if
eval test
\"
x
\$
"
$as_ac_Header
"
\"
=
x
"yes"
;
then
:
cat
>>
confdefs.h
<<
_ACEOF
cat
>>
confdefs.h
<<
_ACEOF
#define
HAVE_LINUX_VIDEODEV_H
1
#define
`
$as_echo
"HAVE_
$ac_header
" |
$as_tr_cpp
`
1
_ACEOF
_ACEOF
fi
fi
...
...
configure.ac
View file @
898d8abc
...
@@ -642,7 +642,7 @@ AC_CHECK_HEADERS([pthread_np.h],,,
...
@@ -642,7 +642,7 @@ AC_CHECK_HEADERS([pthread_np.h],,,
#include <pthread.h>
#include <pthread.h>
#endif])
#endif])
AC_CHECK_HEADERS([linux/videodev.h],,,
AC_CHECK_HEADERS([linux/videodev.h
linux/videodev2.h
],,,
[#ifdef HAVE_SYS_TIME_H
[#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#include <sys/time.h>
#endif
#endif
...
...
dlls/avicap32/avicap32_main.c
View file @
898d8abc
...
@@ -38,8 +38,8 @@
...
@@ -38,8 +38,8 @@
#ifdef HAVE_ASM_TYPES_H
#ifdef HAVE_ASM_TYPES_H
# include <asm/types.h>
# include <asm/types.h>
#endif
#endif
#ifdef HAVE_LINUX_VIDEODEV_H
#ifdef HAVE_LINUX_VIDEODEV
2
_H
# include <linux/videodev.h>
# include <linux/videodev
2
.h>
#endif
#endif
#ifdef HAVE_UNISTD_H
#ifdef HAVE_UNISTD_H
# include <unistd.h>
# include <unistd.h>
...
@@ -91,7 +91,7 @@ HWND VFWAPI capCreateCaptureWindowA(LPCSTR lpszWindowName, DWORD dwStyle, INT x,
...
@@ -91,7 +91,7 @@ HWND VFWAPI capCreateCaptureWindowA(LPCSTR lpszWindowName, DWORD dwStyle, INT x,
return
retW
;
return
retW
;
}
}
#ifdef HAVE_LINUX_VIDEODEV_H
#ifdef HAVE_LINUX_VIDEODEV
2
_H
static
int
xioctl
(
int
fd
,
int
request
,
void
*
arg
)
static
int
xioctl
(
int
fd
,
int
request
,
void
*
arg
)
{
{
...
@@ -108,10 +108,7 @@ static BOOL query_video_device(int devnum, char *name, int namesize, char *versi
...
@@ -108,10 +108,7 @@ static BOOL query_video_device(int devnum, char *name, int namesize, char *versi
int
fd
;
int
fd
;
char
device
[
16
];
char
device
[
16
];
struct
stat
st
;
struct
stat
st
;
struct
video_capability
capa
;
#ifdef HAVE_V4L2
struct
v4l2_capability
caps
;
struct
v4l2_capability
caps
;
#endif
snprintf
(
device
,
sizeof
(
device
),
"/dev/video%i"
,
devnum
);
snprintf
(
device
,
sizeof
(
device
),
"/dev/video%i"
,
devnum
);
...
@@ -132,7 +129,6 @@ static BOOL query_video_device(int devnum, char *name, int namesize, char *versi
...
@@ -132,7 +129,6 @@ static BOOL query_video_device(int devnum, char *name, int namesize, char *versi
return
FALSE
;
return
FALSE
;
}
}
#ifdef HAVE_V4L2
memset
(
&
caps
,
0
,
sizeof
(
caps
));
memset
(
&
caps
,
0
,
sizeof
(
caps
));
if
(
xioctl
(
fd
,
VIDIOC_QUERYCAP
,
&
caps
)
!=
-
1
)
{
if
(
xioctl
(
fd
,
VIDIOC_QUERYCAP
,
&
caps
)
!=
-
1
)
{
lstrcpynA
(
name
,
(
char
*
)
caps
.
card
,
namesize
);
lstrcpynA
(
name
,
(
char
*
)
caps
.
card
,
namesize
);
...
@@ -143,27 +139,15 @@ static BOOL query_video_device(int devnum, char *name, int namesize, char *versi
...
@@ -143,27 +139,15 @@ static BOOL query_video_device(int devnum, char *name, int namesize, char *versi
}
}
if
(
errno
!=
EINVAL
&&
errno
!=
515
)
if
(
errno
!=
EINVAL
&&
errno
!=
515
)
WARN
(
"%s: ioctl failed: %s -- Falling back to V4L
\n
"
,
device
,
strerror
(
errno
));
else
WARN
(
"%s: Not a V4L2 compatible device, trying V4l 1
\n
"
,
device
);
#endif
/* HAVE_V4L2 */
memset
(
&
capa
,
0
,
sizeof
(
capa
));
if
(
xioctl
(
fd
,
VIDIOCGCAP
,
&
capa
)
==
-
1
)
{
/* errno 515 is used by some webcam drivers for unknown IOICTL command */
/* errno 515 is used by some webcam drivers for unknown IOICTL command */
if
(
errno
!=
EINVAL
&&
errno
!=
515
)
ERR
(
"%s: Querying failed: %s
\n
"
,
device
,
strerror
(
errno
));
ERR
(
"%s: Querying failed: %s
\n
"
,
device
,
strerror
(
errno
));
else
ERR
(
"%s: Querying failed: Not a V4L compatible device
\n
"
,
device
);
else
ERR
(
"%s: Querying failed: Not a V4L compatible device
\n
"
,
device
);
close
(
fd
);
return
FALSE
;
}
lstrcpynA
(
name
,
capa
.
name
,
namesize
);
lstrcpynA
(
version
,
device
,
versionsize
);
close
(
fd
);
close
(
fd
);
return
TRU
E
;
return
FALS
E
;
}
}
#else
/* HAVE_LINUX_VIDEODEV_H */
#else
/* HAVE_LINUX_VIDEODEV
2
_H */
static
BOOL
query_video_device
(
int
devnum
,
char
*
name
,
int
namesize
,
char
*
version
,
int
versionsize
)
static
BOOL
query_video_device
(
int
devnum
,
char
*
name
,
int
namesize
,
char
*
version
,
int
versionsize
)
{
{
...
@@ -171,7 +155,7 @@ static BOOL query_video_device(int devnum, char *name, int namesize, char *versi
...
@@ -171,7 +155,7 @@ static BOOL query_video_device(int devnum, char *name, int namesize, char *versi
return
FALSE
;
return
FALSE
;
}
}
#endif
/* HAVE_LINUX_VIDEODEV_H */
#endif
/* HAVE_LINUX_VIDEODEV
2
_H */
/***********************************************************************
/***********************************************************************
* capGetDriverDescriptionA (AVICAP32.@)
* capGetDriverDescriptionA (AVICAP32.@)
...
...
include/config.h.in
View file @
898d8abc
...
@@ -446,6 +446,9 @@
...
@@ -446,6 +446,9 @@
/* Define to 1 if you have the <linux/ucdrom.h> header file. */
/* Define to 1 if you have the <linux/ucdrom.h> header file. */
#undef HAVE_LINUX_UCDROM_H
#undef HAVE_LINUX_UCDROM_H
/* Define to 1 if you have the <linux/videodev2.h> header file. */
#undef HAVE_LINUX_VIDEODEV2_H
/* Define to 1 if you have the <linux/videodev.h> header file. */
/* Define to 1 if you have the <linux/videodev.h> header file. */
#undef HAVE_LINUX_VIDEODEV_H
#undef HAVE_LINUX_VIDEODEV_H
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment