Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Steve Lhomme
VLC
Commits
ff94c5af
Commit
ff94c5af
authored
Mar 23, 2010
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prevent negative caching value to be displayed.
parent
3fad96bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/input/es_out.c
src/input/es_out.c
+1
-1
No files found.
src/input/es_out.c
View file @
ff94c5af
...
...
@@ -648,7 +648,7 @@ static void EsOutDecodersStopBuffering( es_out_t *out, bool b_forced )
if
(
i_stream_duration
<=
i_buffering_duration
&&
!
b_forced
)
{
const
double
f_level
=
(
double
)
i_stream_duration
/
i_buffering_duration
;
const
double
f_level
=
__MAX
(
(
double
)
i_stream_duration
/
i_buffering_duration
,
0
)
;
input_SendEventCache
(
p_sys
->
p_input
,
f_level
);
msg_Dbg
(
p_sys
->
p_input
,
"Buffering %d%%"
,
(
int
)(
100
*
f_level
)
);
...
...
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