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
91f7205b
Commit
91f7205b
authored
Dec 02, 2007
by
Richard Hosking
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
v4l2: Fixed VideoControlList.
parent
ee170e12
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
modules/access/v4l2.c
modules/access/v4l2.c
+4
-4
No files found.
modules/access/v4l2.c
View file @
91f7205b
...
@@ -2294,7 +2294,7 @@ static int VideoControlList( demux_t *p_demux, int i_fd )
...
@@ -2294,7 +2294,7 @@ static int VideoControlList( demux_t *p_demux, int i_fd )
queryctrl
.
id
<
V4L2_CID_LASTP1
;
queryctrl
.
id
<
V4L2_CID_LASTP1
;
queryctrl
.
id
++
)
queryctrl
.
id
++
)
{
{
if
(
ioctl
(
i_fd
,
VIDIOC_QUERYCTRL
,
&
queryctrl
)
)
if
(
ioctl
(
i_fd
,
VIDIOC_QUERYCTRL
,
&
queryctrl
)
>=
0
)
{
{
if
(
queryctrl
.
flags
&
V4L2_CTRL_FLAG_DISABLED
)
if
(
queryctrl
.
flags
&
V4L2_CTRL_FLAG_DISABLED
)
continue
;
continue
;
...
@@ -2327,7 +2327,7 @@ static int VideoControlList( demux_t *p_demux, int i_fd )
...
@@ -2327,7 +2327,7 @@ static int VideoControlList( demux_t *p_demux, int i_fd )
querymenu
.
index
<=
(
unsigned
)
queryctrl
.
maximum
;
querymenu
.
index
<=
(
unsigned
)
queryctrl
.
maximum
;
querymenu
.
index
++
)
querymenu
.
index
++
)
{
{
if
(
ioctl
(
i_fd
,
VIDIOC_QUERYMENU
,
&
querymenu
)
)
if
(
ioctl
(
i_fd
,
VIDIOC_QUERYMENU
,
&
querymenu
)
>=
0
)
{
{
msg_Dbg
(
p_demux
,
" %d: %s"
,
msg_Dbg
(
p_demux
,
" %d: %s"
,
querymenu
.
index
,
querymenu
.
name
);
querymenu
.
index
,
querymenu
.
name
);
...
@@ -2352,7 +2352,7 @@ static int VideoControlList( demux_t *p_demux, int i_fd )
...
@@ -2352,7 +2352,7 @@ static int VideoControlList( demux_t *p_demux, int i_fd )
;
;
queryctrl
.
id
++
)
queryctrl
.
id
++
)
{
{
if
(
ioctl
(
i_fd
,
VIDIOC_QUERYCTRL
,
&
queryctrl
)
)
if
(
ioctl
(
i_fd
,
VIDIOC_QUERYCTRL
,
&
queryctrl
)
>=
0
)
{
{
if
(
queryctrl
.
flags
&
V4L2_CTRL_FLAG_DISABLED
)
if
(
queryctrl
.
flags
&
V4L2_CTRL_FLAG_DISABLED
)
continue
;
continue
;
...
@@ -2380,7 +2380,7 @@ static int VideoControl( demux_t *p_demux, int i_fd,
...
@@ -2380,7 +2380,7 @@ static int VideoControl( demux_t *p_demux, int i_fd,
if
(
ioctl
(
i_fd
,
VIDIOC_QUERYCTRL
,
&
queryctrl
)
<
0
if
(
ioctl
(
i_fd
,
VIDIOC_QUERYCTRL
,
&
queryctrl
)
<
0
||
queryctrl
.
flags
&
V4L2_CTRL_FLAG_DISABLED
)
||
queryctrl
.
flags
&
V4L2_CTRL_FLAG_DISABLED
)
{
{
msg_
Err
(
p_demux
,
"%s (%x) control is not supported."
,
psz_label
,
msg_
Warn
(
p_demux
,
"%s (%x) control is not supported."
,
psz_label
,
i_value
);
i_value
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
...
...
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