X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fgui%2Fncurses.c;h=2eaf95f02c204a6fc2437fa43fbb4c9c38c00f6d;hb=e056b5805aabed93d484dd92131463b760261b89;hp=3a019519155f63bb874105c317bac50f8e89a1ba;hpb=40d199a49334bba38ac01010b23155e2572999dc;p=vlc diff --git a/modules/gui/ncurses.c b/modules/gui/ncurses.c index 3a01951915..2eaf95f02c 100644 --- a/modules/gui/ncurses.c +++ b/modules/gui/ncurses.c @@ -1118,7 +1118,7 @@ static int HandleKey( intf_thread_t *p_intf, int i_key ) bool fs = var_ToggleBool( p_playlist, "fullscreen" ); if( p_intf->p_sys->p_input ) { - vout_thread_t *p_vout = inputGetVout( p_intf->p_sys->p_input ); + vout_thread_t *p_vout = input_GetVout( p_intf->p_sys->p_input ); if( p_vout ) { var_SetBool( p_vout, "fullscreen", fs ); @@ -1520,10 +1520,10 @@ static void Redraw( intf_thread_t *p_intf, time_t *t_last_refresh ) /* Position */ var_Get( p_input, "time", &val ); - msecstotimestr( buf1, val.i_time / 1000 ); + secstotimestr( buf1, val.i_time / CLOCK_FREQ ); var_Get( p_input, "length", &val ); - msecstotimestr( buf2, val.i_time / 1000 ); + secstotimestr( buf2, val.i_time / CLOCK_FREQ ); mvnprintw( y++, 0, COLS, _(" Position : %s/%s (%.2f%%)"), buf1, buf2, p_sys->f_slider );