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
d90abb6b
Commit
d90abb6b
authored
Jan 12, 2009
by
Ilkka Ollakka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4: tell how much has been buffered when buffering (percents)
parent
acb58aa6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
modules/gui/qt4/components/interface_widgets.cpp
modules/gui/qt4/components/interface_widgets.cpp
+4
-1
modules/gui/qt4/input_manager.cpp
modules/gui/qt4/input_manager.cpp
+4
-2
No files found.
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_
newCache
=
f_c
ache
;
f_
cache
=
f_newC
ache
;
/* Update rate */
emit
cachingChanged
(
f_cache
);
}
...
...
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