Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
b012efbd
Commit
b012efbd
authored
Jun 07, 2007
by
Rémi Denis-Courmont
Browse files
Use %u instead of %d
parent
4e7c3389
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/input/es_out.c
View file @
b012efbd
...
...
@@ -1781,24 +1781,24 @@ static void EsOutAddInfo( es_out_t *out, es_out_id_t *es )
if
(
fmt
->
audio
.
i_channels
>
0
)
input_Control
(
p_input
,
INPUT_ADD_INFO
,
psz_cat
,
_
(
"Channels"
),
"%
d
"
,
fmt
->
audio
.
i_channels
);
"%
u
"
,
fmt
->
audio
.
i_channels
);
if
(
fmt
->
audio
.
i_rate
>
0
)
{
input_Control
(
p_input
,
INPUT_ADD_INFO
,
psz_cat
,
_
(
"Sample rate"
),
_
(
"%
d
Hz"
),
fmt
->
audio
.
i_rate
);
_
(
"%
u
Hz"
),
fmt
->
audio
.
i_rate
);
var_SetInteger
(
p_input
,
"sample-rate"
,
fmt
->
audio
.
i_rate
);
}
if
(
fmt
->
audio
.
i_bitspersample
>
0
)
input_Control
(
p_input
,
INPUT_ADD_INFO
,
psz_cat
,
_
(
"Bits per sample"
),
"%
d
"
,
_
(
"Bits per sample"
),
"%
u
"
,
fmt
->
audio
.
i_bitspersample
);
if
(
fmt
->
i_bitrate
>
0
)
{
input_Control
(
p_input
,
INPUT_ADD_INFO
,
psz_cat
,
_
(
"Bitrate"
),
_
(
"%
d
kb/s"
),
fmt
->
i_bitrate
/
1000
);
_
(
"%
u
kb/s"
),
fmt
->
i_bitrate
/
1000
);
var_SetInteger
(
p_input
,
"bit-rate"
,
fmt
->
i_bitrate
);
}
break
;
...
...
@@ -1809,13 +1809,13 @@ static void EsOutAddInfo( es_out_t *out, es_out_id_t *es )
if
(
fmt
->
video
.
i_width
>
0
&&
fmt
->
video
.
i_height
>
0
)
input_Control
(
p_input
,
INPUT_ADD_INFO
,
psz_cat
,
_
(
"Resolution"
),
"%
d
x%
d
"
,
_
(
"Resolution"
),
"%
u
x%
u
"
,
fmt
->
video
.
i_width
,
fmt
->
video
.
i_height
);
if
(
fmt
->
video
.
i_visible_width
>
0
&&
fmt
->
video
.
i_visible_height
>
0
)
input_Control
(
p_input
,
INPUT_ADD_INFO
,
psz_cat
,
_
(
"Display resolution"
),
"%
d
x%
d
"
,
_
(
"Display resolution"
),
"%
u
x%
u
"
,
fmt
->
video
.
i_visible_width
,
fmt
->
video
.
i_visible_height
);
if
(
fmt
->
video
.
i_frame_rate
>
0
&&
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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