]> git.sesse.net Git - vlc/blobdiff - modules/gui/ncurses.c
UIs: call XInitThreads if using X11
[vlc] / modules / gui / ncurses.c
index 3a019519155f63bb874105c317bac50f8e89a1ba..2eaf95f02c204a6fc2437fa43fbb4c9c38c00f6d 100644 (file)
@@ -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 );