Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
cf716aa8
Commit
cf716aa8
authored
Mar 18, 2006
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't use %f in es_out (Closes:#587)
parent
221ec369
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
src/input/es_out.c
src/input/es_out.c
+9
-4
No files found.
src/input/es_out.c
View file @
cf716aa8
...
...
@@ -1570,6 +1570,7 @@ static void EsOutAddInfo( es_out_t *out, es_out_id_t *es )
input_thread_t
*
p_input
=
p_sys
->
p_input
;
es_format_t
*
fmt
=
&
es
->
fmt
;
char
*
psz_cat
;
lldiv_t
div
;
/* Add stream info */
asprintf
(
&
psz_cat
,
_
(
"Stream %d"
),
out
->
p_sys
->
i_id
-
1
);
...
...
@@ -1622,11 +1623,15 @@ static void EsOutAddInfo( es_out_t *out, es_out_id_t *es )
fmt
->
video
.
i_visible_height
);
if
(
fmt
->
video
.
i_frame_rate
>
0
&&
fmt
->
video
.
i_frame_rate_base
>
0
)
{
div
=
lldiv
(
(
float
)
fmt
->
video
.
i_frame_rate
/
fmt
->
video
.
i_frame_rate_base
*
1000000
,
1000000
);
input_Control
(
p_input
,
INPUT_ADD_INFO
,
psz_cat
,
_
(
"Frame rate"
),
"%f
"
,
(
float
)
fmt
->
video
.
i_frame_rate
/
fmt
->
video
.
i_frame_rate_base
);
break
;
_
(
"Frame rate"
),
I64Fd
".%06u
"
,
div
.
quot
,
(
unsigned
int
)
div
.
rem
);
}
break
;
case
SPU_ES
:
input_Control
(
p_input
,
INPUT_ADD_INFO
,
psz_cat
,
...
...
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