Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
af23abe4
Commit
af23abe4
authored
Jun 11, 2006
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/gui/wxwidgets: don't call aout_VolumeGet so often because it is MIPS intensive.
parent
04586748
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
modules/gui/wxwidgets/interface.cpp
modules/gui/wxwidgets/interface.cpp
+4
-1
modules/gui/wxwidgets/interface.hpp
modules/gui/wxwidgets/interface.hpp
+1
-0
No files found.
modules/gui/wxwidgets/interface.cpp
View file @
af23abe4
...
@@ -364,6 +364,7 @@ Interface::Interface( intf_thread_t *_p_intf, long style ):
...
@@ -364,6 +364,7 @@ Interface::Interface( intf_thread_t *_p_intf, long style ):
b_extra
=
VLC_FALSE
;
b_extra
=
VLC_FALSE
;
extra_frame
=
0
;
extra_frame
=
0
;
playlist_manager
=
0
;
playlist_manager
=
0
;
i_update_counter
=
0
;
/* Give our interface a nice little icon */
/* Give our interface a nice little icon */
...
@@ -529,9 +530,11 @@ void Interface::Init()
...
@@ -529,9 +530,11 @@ void Interface::Init()
void
Interface
::
Update
()
void
Interface
::
Update
()
{
{
/* Misc updates */
/* Misc updates */
((
VLCVolCtrl
*
)
volctrl
)
->
UpdateVolume
();
if
(
!
(
i_update_counter
%
10
)
)
((
VLCVolCtrl
*
)
volctrl
)
->
UpdateVolume
();
if
(
playlist_manager
)
playlist_manager
->
Update
();
if
(
playlist_manager
)
playlist_manager
->
Update
();
i_update_counter
++
;
}
}
void
Interface
::
OnControlEvent
(
wxCommandEvent
&
event
)
void
Interface
::
OnControlEvent
(
wxCommandEvent
&
event
)
...
...
modules/gui/wxwidgets/interface.hpp
View file @
af23abe4
...
@@ -164,6 +164,7 @@ namespace wxvlc
...
@@ -164,6 +164,7 @@ namespace wxvlc
Timer
*
timer
;
Timer
*
timer
;
intf_thread_t
*
p_intf
;
intf_thread_t
*
p_intf
;
unsigned
int
i_update_counter
;
int
i_old_playing_status
;
int
i_old_playing_status
;
/* For auto-generated menus */
/* For auto-generated menus */
...
...
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