/* Callback prototype */
static int PopupMenuCB( vlc_object_t *p_this, const char *psz_variable,
- vlc_value_t old_val, vlc_value_t new_val, void *param );
+ vlc_value_t old_val, vlc_value_t new_val, void * );
/*****************************************************************************
* Constructor.
*****************************************************************************/
-Timer::Timer( intf_thread_t *_p_intf, HWND hwnd, Interface *_p_main_interface)//, Interface *_p_main_interface )
+Timer::Timer( intf_thread_t *_p_intf, HWND hwnd, Interface *_p_main_interface)
{
p_intf = _p_intf;
p_main_interface = _p_main_interface;
p_main_interface->TogglePlayButton( PLAYING_S );
i_old_playing_status = PLAYING_S;
-
- /* Take care of the volume */
- audio_volume_t i_volume;
- aout_VolumeGet( p_intf, &i_volume );
- SendMessage( p_main_interface->hwndVol, TBM_SETPOS, 1,
- 200 - (i_volume * 200 * 2 / AOUT_VOLUME_MAX ) );
}
}
else if( p_intf->p_sys->p_input->b_dead )
}
}
+ /* Take care of the volume, etc... */
+ p_main_interface->Update();
+
/* Manage Playing status */
var_Get( p_input, "state", &val );
if( i_old_playing_status != val.i_int )
vlc_value_t old_val, vlc_value_t new_val, void *param )
{
intf_thread_t *p_intf = (intf_thread_t *)param;
+ POINT point = {0};
- /* Nothing for now */
+ PopupMenu( p_intf, p_intf->p_sys->p_main_window->hWnd, point );
return VLC_SUCCESS;
}