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
bc40d784
Commit
bc40d784
authored
Oct 02, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Retrieve current value of V4L2 64-bits control
parent
895e45bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
modules/access/v4l2/controls.c
modules/access/v4l2/controls.c
+16
-0
No files found.
modules/access/v4l2/controls.c
View file @
bc40d784
...
...
@@ -494,6 +494,22 @@ static vlc_v4l2_ctrl_t *ControlAddInteger64 (vlc_object_t *obj, int fd,
return
NULL
;
}
struct
v4l2_ext_control
ext_ctrl
=
{
.
id
=
c
->
id
,
.
size
=
0
,
};
struct
v4l2_ext_controls
ext_ctrls
=
{
.
ctrl_class
=
V4L2_CTRL_ID2CLASS
(
c
->
id
),
.
count
=
1
,
.
error_idx
=
0
,
.
controls
=
&
ext_ctrl
,
};
if
(
v4l2_ioctl
(
c
->
fd
,
VIDIOC_G_EXT_CTRLS
,
&
ext_ctrls
)
>=
0
)
{
vlc_value_t
val
=
{
.
i_int
=
ext_ctrl
.
value64
};
msg_Dbg
(
obj
,
" current: %"
PRId64
,
val
.
i_int
);
var_Change
(
obj
,
c
->
name
,
VLC_VAR_SETVALUE
,
&
val
,
NULL
);
}
return
c
;
}
...
...
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