Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
58794a90
Commit
58794a90
authored
Sep 01, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Select V4L2 input before standard as per specification
parent
eda97b3a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
modules/access/v4l2.c
modules/access/v4l2.c
+8
-9
No files found.
modules/access/v4l2.c
View file @
58794a90
...
@@ -1552,6 +1552,14 @@ static int OpenVideoDev( vlc_object_t *p_obj, demux_sys_t *p_sys, bool b_demux )
...
@@ -1552,6 +1552,14 @@ static int OpenVideoDev( vlc_object_t *p_obj, demux_sys_t *p_sys, bool b_demux )
}
}
#endif
#endif
/* Select input */
if
(
v4l2_ioctl
(
i_fd
,
VIDIOC_S_INPUT
,
&
p_sys
->
i_selected_input
)
<
0
)
{
msg_Err
(
p_obj
,
"cannot set input %u: %m"
,
p_sys
->
i_selected_input
);
goto
error
;
}
msg_Dbg
(
p_obj
,
"input set to %u"
,
p_sys
->
i_selected_input
);
/* Select standard */
/* Select standard */
bool
bottom_first
;
bool
bottom_first
;
const
char
*
stdname
=
p_sys
->
psz_standard
;
const
char
*
stdname
=
p_sys
->
psz_standard
;
...
@@ -1626,15 +1634,6 @@ static int OpenVideoDev( vlc_object_t *p_obj, demux_sys_t *p_sys, bool b_demux )
...
@@ -1626,15 +1634,6 @@ static int OpenVideoDev( vlc_object_t *p_obj, demux_sys_t *p_sys, bool b_demux )
msg_Dbg
(
p_obj
,
"tuner audio mode set"
);
msg_Dbg
(
p_obj
,
"tuner audio mode set"
);
}
}
/* Select input */
if
(
v4l2_ioctl
(
i_fd
,
VIDIOC_S_INPUT
,
&
p_sys
->
i_selected_input
)
<
0
)
{
msg_Err
(
p_obj
,
"cannot set input %u: %m"
,
p_sys
->
i_selected_input
);
goto
error
;
}
msg_Dbg
(
p_obj
,
"input set to %u"
,
p_sys
->
i_selected_input
);
/* Set audio input */
/* Set audio input */
if
(
p_sys
->
i_audio
>
0
)
if
(
p_sys
->
i_audio
>
0
)
...
...
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