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
79a78505
Commit
79a78505
authored
Jun 01, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
V4L2: fix some warnings
parent
77ef67f7
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 @
79a78505
...
@@ -545,9 +545,9 @@ struct demux_sys_t
...
@@ -545,9 +545,9 @@ struct demux_sys_t
struct
v4l2_capability
dev_cap
;
struct
v4l2_capability
dev_cap
;
int
i_input
;
unsigned
i_input
;
struct
v4l2_input
*
p_inputs
;
struct
v4l2_input
*
p_inputs
;
int
i_selected_input
;
unsigned
i_selected_input
;
int
i_standard
;
int
i_standard
;
struct
v4l2_standard
*
p_standards
;
struct
v4l2_standard
*
p_standards
;
...
@@ -561,7 +561,7 @@ struct demux_sys_t
...
@@ -561,7 +561,7 @@ struct demux_sys_t
int
i_tuner
;
int
i_tuner
;
struct
v4l2_tuner
*
p_tuners
;
struct
v4l2_tuner
*
p_tuners
;
int
i_codec
;
unsigned
i_codec
;
struct
v4l2_fmtdesc
*
p_codecs
;
struct
v4l2_fmtdesc
*
p_codecs
;
struct
buffer_t
*
p_buffers
;
struct
buffer_t
*
p_buffers
;
...
@@ -1636,7 +1636,7 @@ static bool IsPixelFormatSupported( demux_t *p_demux, unsigned int i_pixelformat
...
@@ -1636,7 +1636,7 @@ static bool IsPixelFormatSupported( demux_t *p_demux, unsigned int i_pixelformat
{
{
demux_sys_t
*
p_sys
=
p_demux
->
p_sys
;
demux_sys_t
*
p_sys
=
p_demux
->
p_sys
;
for
(
int
i_index
=
0
;
i_index
<
p_sys
->
i_codec
;
i_index
++
)
for
(
unsigned
i_index
=
0
;
i_index
<
p_sys
->
i_codec
;
i_index
++
)
{
{
if
(
p_sys
->
p_codecs
[
i_index
].
pixelformat
==
i_pixelformat
)
if
(
p_sys
->
p_codecs
[
i_index
].
pixelformat
==
i_pixelformat
)
return
true
;
return
true
;
...
@@ -2398,7 +2398,6 @@ open_failed:
...
@@ -2398,7 +2398,6 @@ open_failed:
static
bool
ProbeVideoDev
(
vlc_object_t
*
p_obj
,
demux_sys_t
*
p_sys
,
static
bool
ProbeVideoDev
(
vlc_object_t
*
p_obj
,
demux_sys_t
*
p_sys
,
const
char
*
psz_device
)
const
char
*
psz_device
)
{
{
int
i_index
;
int
i_standard
;
int
i_standard
;
int
i_fd
;
int
i_fd
;
...
@@ -2501,7 +2500,7 @@ static bool ProbeVideoDev( vlc_object_t *p_obj, demux_sys_t *p_sys,
...
@@ -2501,7 +2500,7 @@ static bool ProbeVideoDev( vlc_object_t *p_obj, demux_sys_t *p_sys,
p_sys
->
p_inputs
=
calloc
(
1
,
p_sys
->
i_input
*
sizeof
(
struct
v4l2_input
)
);
p_sys
->
p_inputs
=
calloc
(
1
,
p_sys
->
i_input
*
sizeof
(
struct
v4l2_input
)
);
if
(
!
p_sys
->
p_inputs
)
goto
open_failed
;
if
(
!
p_sys
->
p_inputs
)
goto
open_failed
;
for
(
i_index
=
0
;
i_index
<
p_sys
->
i_input
;
i_index
++
)
for
(
unsigned
i_index
=
0
;
i_index
<
p_sys
->
i_input
;
i_index
++
)
{
{
p_sys
->
p_inputs
[
i_index
].
index
=
i_index
;
p_sys
->
p_inputs
[
i_index
].
index
=
i_index
;
...
@@ -2556,7 +2555,7 @@ static bool ProbeVideoDev( vlc_object_t *p_obj, demux_sys_t *p_sys,
...
@@ -2556,7 +2555,7 @@ static bool ProbeVideoDev( vlc_object_t *p_obj, demux_sys_t *p_sys,
}
}
/* initialize the structures for the ioctls */
/* initialize the structures for the ioctls */
for
(
i_index
=
0
;
i_index
<
32
;
i_index
++
)
for
(
unsigned
i_index
=
0
;
i_index
<
32
;
i_index
++
)
{
{
p_sys
->
p_audios
[
i_index
].
index
=
i_index
;
p_sys
->
p_audios
[
i_index
].
index
=
i_index
;
}
}
...
@@ -2607,7 +2606,7 @@ static bool ProbeVideoDev( vlc_object_t *p_obj, demux_sys_t *p_sys,
...
@@ -2607,7 +2606,7 @@ static bool ProbeVideoDev( vlc_object_t *p_obj, demux_sys_t *p_sys,
p_sys
->
p_tuners
=
calloc
(
1
,
p_sys
->
i_tuner
*
sizeof
(
struct
v4l2_tuner
)
);
p_sys
->
p_tuners
=
calloc
(
1
,
p_sys
->
i_tuner
*
sizeof
(
struct
v4l2_tuner
)
);
if
(
!
p_sys
->
p_tuners
)
goto
open_failed
;
if
(
!
p_sys
->
p_tuners
)
goto
open_failed
;
for
(
i_index
=
0
;
i_index
<
p_sys
->
i_tuner
;
i_index
++
)
for
(
i
nt
i
_index
=
0
;
i_index
<
p_sys
->
i_tuner
;
i_index
++
)
{
{
p_sys
->
p_tuners
[
i_index
].
index
=
i_index
;
p_sys
->
p_tuners
[
i_index
].
index
=
i_index
;
...
@@ -2654,7 +2653,7 @@ static bool ProbeVideoDev( vlc_object_t *p_obj, demux_sys_t *p_sys,
...
@@ -2654,7 +2653,7 @@ static bool ProbeVideoDev( vlc_object_t *p_obj, demux_sys_t *p_sys,
{
{
struct
v4l2_fmtdesc
codec
;
struct
v4l2_fmtdesc
codec
;
i_index
=
0
;
unsigned
i_index
=
0
;
memset
(
&
codec
,
0
,
sizeof
(
codec
)
);
memset
(
&
codec
,
0
,
sizeof
(
codec
)
);
codec
.
index
=
i_index
;
codec
.
index
=
i_index
;
codec
.
type
=
V4L2_BUF_TYPE_VIDEO_CAPTURE
;
codec
.
type
=
V4L2_BUF_TYPE_VIDEO_CAPTURE
;
...
...
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