/* following is only valid for horizontal a trackbar */
newpos = ((click.x-tRect.left-(thumb/2))*(max-min)+((tRect.right-tRect.left-thumb)/2))
- /(tRect.right-tRect.left-thumb);
+ /(tRect.right-tRect.left-thumb);
/* set new postion */
SendMessage(hWnd, TBM_SETPOS, TRUE, min+newpos);
void InputManager::UpdateNowPlaying()
{
- char *psz_now_playing = input_GetItem(p_input)->p_meta->psz_nowplaying ?
- strdup( input_GetItem(p_input)->p_meta->psz_nowplaying ):
- strdup( "" );
+ char *psz_now_playing = input_item_GetNowPlaying( input_GetItem(p_input) );
if( psz_now_playing && *psz_now_playing )
{
p_main_intf->statusbar->SetStatusText(