Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
d90abb6b
Commit
d90abb6b
authored
Jan 12, 2009
by
Ilkka Ollakka
Browse files
Qt4: tell how much has been buffered when buffering (percents)
parent
acb58aa6
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/gui/qt4/components/interface_widgets.cpp
View file @
d90abb6b
...
...
@@ -483,7 +483,10 @@ void TimeLabel::toggleTimeDisplay()
void
TimeLabel
::
setCaching
(
float
f_cache
)
{
setText
(
"Buffering"
);
QString
amount
;
amount
.
setNum
(
(
int
)(
100
*
f_cache
)
);
msg_Dbg
(
p_intf
,
"New caching: %d"
,
(
int
)(
100
*
f_cache
));
setText
(
"Buffering "
+
amount
+
"%"
);
}
modules/gui/qt4/input_manager.cpp
View file @
d90abb6b
...
...
@@ -524,10 +524,12 @@ void InputManager::UpdateAout()
}
void
InputManager
::
UpdateCaching
()
{
float
f_newCache
=
var_GetFloat
(
p_input
,
"cache"
);
if
(
!
hasInput
())
return
;
float
f_newCache
=
var_GetFloat
(
p_input
,
"cache"
);
if
(
f_newCache
!=
f_cache
)
{
f_
newC
ache
=
f_
c
ache
;
f_
c
ache
=
f_
newC
ache
;
/* Update rate */
emit
cachingChanged
(
f_cache
);
}
...
...
Write
Preview
Supports
Markdown
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