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
605d047f
Commit
605d047f
authored
Jun 28, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
video output: use ARRAY_SIZE()
parent
4ec6d79c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
src/video_output/vout_intf.c
src/video_output/vout_intf.c
+6
-7
No files found.
src/video_output/vout_intf.c
View file @
605d047f
...
...
@@ -84,7 +84,7 @@ static const struct
{
0
.
5
,
N_
(
"1:2 Half"
)
},
{
1
,
N_
(
"1:1 Original"
)
},
{
2
,
N_
(
"2:1 Double"
)
},
{
0
,
NULL
}
};
};
static
const
struct
{
...
...
@@ -102,7 +102,7 @@ static const struct
{
"4:3"
,
"4:3"
},
{
"5:4"
,
"5:4"
},
{
"1:1"
,
"1:1"
},
{
NULL
,
NULL
}
};
};
static
const
struct
{
...
...
@@ -118,7 +118,7 @@ static const struct
{
"235:100"
,
"2.35:1"
},
{
"239:100"
,
"2.39:1"
},
{
"5:4"
,
"5:4"
},
{
NULL
,
NULL
}
};
};
static
void
AddCustomRatios
(
vout_thread_t
*
p_vout
,
const
char
*
psz_var
,
char
*
psz_list
)
...
...
@@ -147,7 +147,6 @@ void vout_IntfInit( vout_thread_t *p_vout )
{
vlc_value_t
val
,
text
,
old_val
;
char
*
psz_buf
;
int
i
;
/* Create a few object variables we'll need later on */
var_Create
(
p_vout
,
"snapshot-path"
,
VLC_VAR_STRING
|
VLC_VAR_DOINHERIT
);
...
...
@@ -184,7 +183,7 @@ void vout_IntfInit( vout_thread_t *p_vout )
var_Get
(
p_vout
,
"zoom"
,
&
old_val
);
for
(
i
=
0
;
p_zoom_values
[
i
].
f_value
;
i
++
)
for
(
size_t
i
=
0
;
i
<
ARRAY_SIZE
(
p_zoom_values
)
;
i
++
)
{
if
(
old_val
.
f_float
==
p_zoom_values
[
i
].
f_value
)
var_Change
(
p_vout
,
"zoom"
,
VLC_VAR_DELCHOICE
,
&
old_val
,
NULL
);
...
...
@@ -218,7 +217,7 @@ void vout_IntfInit( vout_thread_t *p_vout )
val
.
psz_string
=
(
char
*
)
""
;
var_Change
(
p_vout
,
"crop"
,
VLC_VAR_DELCHOICE
,
&
val
,
0
);
for
(
i
=
0
;
p_crop_values
[
i
].
psz_value
;
i
++
)
for
(
size_t
i
=
0
;
i
<
ARRAY_SIZE
(
p_crop_values
)
;
i
++
)
{
val
.
psz_string
=
(
char
*
)
p_crop_values
[
i
].
psz_value
;
text
.
psz_string
=
_
(
p_crop_values
[
i
].
psz_label
);
...
...
@@ -252,7 +251,7 @@ void vout_IntfInit( vout_thread_t *p_vout )
val
.
psz_string
=
(
char
*
)
""
;
var_Change
(
p_vout
,
"aspect-ratio"
,
VLC_VAR_DELCHOICE
,
&
val
,
0
);
for
(
i
=
0
;
p_aspect_ratio_values
[
i
].
psz_value
;
i
++
)
for
(
size_t
i
=
0
;
i
<
ARRAY_SIZE
(
p_aspect_ratio_values
)
;
i
++
)
{
val
.
psz_string
=
(
char
*
)
p_aspect_ratio_values
[
i
].
psz_value
;
text
.
psz_string
=
_
(
p_aspect_ratio_values
[
i
].
psz_label
);
...
...
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