Commit af23abe4 authored by Gildas Bazin's avatar Gildas Bazin

* modules/gui/wxwidgets: don't call aout_VolumeGet so often because it is MIPS intensive.

parent 04586748
......@@ -364,6 +364,7 @@ Interface::Interface( intf_thread_t *_p_intf, long style ):
b_extra = VLC_FALSE;
extra_frame = 0;
playlist_manager = 0;
i_update_counter = 0;
/* Give our interface a nice little icon */
......@@ -529,9 +530,11 @@ void Interface::Init()
void Interface::Update()
{
/* Misc updates */
((VLCVolCtrl *)volctrl)->UpdateVolume();
if( !(i_update_counter % 10) ) ((VLCVolCtrl *)volctrl)->UpdateVolume();
if( playlist_manager ) playlist_manager->Update();
i_update_counter++;
}
void Interface::OnControlEvent( wxCommandEvent& event )
......
......@@ -164,6 +164,7 @@ namespace wxvlc
Timer *timer;
intf_thread_t *p_intf;
unsigned int i_update_counter;
int i_old_playing_status;
/* For auto-generated menus */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment