Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
a685831d
Commit
a685831d
authored
Feb 01, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove (extremely) old copy of videodev2.h
parent
804f5284
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
897 deletions
+5
-897
configure.ac
configure.ac
+0
-23
modules/access/Modules.am
modules/access/Modules.am
+1
-1
modules/access/pvr.c
modules/access/pvr.c
+4
-15
modules/access/videodev2.h
modules/access/videodev2.h
+0
-858
No files found.
configure.ac
View file @
a685831d
...
@@ -2115,29 +2115,6 @@ AC_ARG_ENABLE(pvr,
...
@@ -2115,29 +2115,6 @@ AC_ARG_ENABLE(pvr,
if test "${enable_pvr}" = "yes"
if test "${enable_pvr}" = "yes"
then
then
VLC_ADD_PLUGIN([pvr])
VLC_ADD_PLUGIN([pvr])
AC_ARG_WITH(videodev2,
[ --with-videodev2=FILE Location of videodev2.h file (default /usr/include/linux/videodev2.h)],[],[])
if test "${with_videodev2}" != "no" -a -n "${with_videodev2}"
then
AC_DEFINE_UNQUOTED(VIDEODEV2_H_FILE, "${with_videodev2}", [Location of videodev2.h])
fi
AC_CACHE_CHECK([for new linux/videodev2.h],
[ac_cv_new_linux_videodev2_h],
[AC_TRY_COMPILE([
#include <sys/types.h>
# ifdef VIDEODEV2_H_FILE
# include VIDEODEV2_H_FILE
# else
# include <linux/videodev2.h>
# endif
],
[struct v4l2_ext_controls ctrls; ctrls.ctrl_class = V4L2_CTRL_CLASS_MPEG; ],
ac_cv_new_linux_videodev2_h=yes,
ac_cv_new_linux_videodev2_h=no)])
if test "${ac_cv_new_linux_videodev2_h}" != "no"; then
AC_DEFINE(HAVE_NEW_LINUX_VIDEODEV2_H, 1, [Define if new linux/videodev2.h present])
fi
fi
fi
dnl
dnl
...
...
modules/access/Modules.am
View file @
a685831d
...
@@ -38,7 +38,7 @@ SOURCES_access_eyetv = eyetv.m
...
@@ -38,7 +38,7 @@ SOURCES_access_eyetv = eyetv.m
SOURCES_dvdnav = dvdnav.c
SOURCES_dvdnav = dvdnav.c
SOURCES_dvdread = dvdread.c
SOURCES_dvdread = dvdread.c
SOURCES_dc1394 = dc1394.c
SOURCES_dc1394 = dc1394.c
SOURCES_pvr = pvr.c
videodev2.h
SOURCES_pvr = pvr.c
SOURCES_v4l2 = v4l2.c
SOURCES_v4l2 = v4l2.c
SOURCES_qtcapture = qtcapture.m
SOURCES_qtcapture = qtcapture.m
SOURCES_linsys_sdi = linsys/linsys_sdi.c linsys/linsys_sdi.h
SOURCES_linsys_sdi = linsys/linsys_sdi.c linsys/linsys_sdi.h
...
...
modules/access/pvr.c
View file @
a685831d
...
@@ -41,14 +41,12 @@
...
@@ -41,14 +41,12 @@
#include <unistd.h>
#include <unistd.h>
#include <linux/types.h>
#include <linux/types.h>
#include <sys/ioctl.h>
#include <sys/ioctl.h>
#ifdef HAVE_NEW_LINUX_VIDEODEV2_H
#if defined(HAVE_LINUX_VIDEODEV2_H)
# ifdef VIDEODEV2_H_FILE
# include VIDEODEV2_H_FILE
# else
# include <linux/videodev2.h>
# include <linux/videodev2.h>
# endif
#elif defined(HAVE_SYS_VIDEOIO_H)
# include <sys/videoio.h>
#else
#else
#
include "videodev2.h
"
#
error "No Video4Linux2 headers found.
"
#endif
#endif
/*****************************************************************************
/*****************************************************************************
...
@@ -307,8 +305,6 @@ static int ConfigureIVTV( access_t * p_access )
...
@@ -307,8 +305,6 @@ static int ConfigureIVTV( access_t * p_access )
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
}
}
#ifdef HAVE_NEW_LINUX_VIDEODEV2_H
#define MAX_V4L2_CTRLS (6)
#define MAX_V4L2_CTRLS (6)
/*****************************************************************************
/*****************************************************************************
* AddV4L2Ctrl: adds a control to the v4l2 controls list
* AddV4L2Ctrl: adds a control to the v4l2 controls list
...
@@ -536,8 +532,6 @@ static int ConfigureV4L2( access_t * p_access )
...
@@ -536,8 +532,6 @@ static int ConfigureV4L2( access_t * p_access )
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
}
}
#endif
/* HAVE_NEW_LINUX_VIDEODEV2_H */
/*****************************************************************************
/*****************************************************************************
* Open: open the device
* Open: open the device
*****************************************************************************/
*****************************************************************************/
...
@@ -856,17 +850,12 @@ static int Open( vlc_object_t * p_this )
...
@@ -856,17 +850,12 @@ static int Open( vlc_object_t * p_this )
{
{
if
(
p_sys
->
b_v4l2_api
)
if
(
p_sys
->
b_v4l2_api
)
{
{
#ifdef HAVE_NEW_LINUX_VIDEODEV2_H
result
=
ConfigureV4L2
(
p_access
);
result
=
ConfigureV4L2
(
p_access
);
if
(
result
!=
VLC_SUCCESS
)
if
(
result
!=
VLC_SUCCESS
)
{
{
Close
(
VLC_OBJECT
(
p_access
)
);
Close
(
VLC_OBJECT
(
p_access
)
);
return
result
;
return
result
;
}
}
#else
msg_Warn
(
p_access
,
"You have new ivtvdrivers, "
"but this vlc was built against an old v4l2 version."
);
#endif
}
}
else
else
{
{
...
...
modules/access/videodev2.h
deleted
100644 → 0
View file @
804f5284
This diff is collapsed.
Click to expand it.
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