]> git.sesse.net Git - vlc/commitdiff
Incorrect time-offset type in rc module
authorDylan Yudaken <dyudaken@gmail.com>
Tue, 28 Apr 2009 12:25:54 +0000 (14:25 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 29 Apr 2009 09:32:53 +0000 (11:32 +0200)
Modified and Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>

modules/control/rc.c

index dde5d84e897b1177b5111d043de95df94c96fc90..1303d219afe37c29bbf13cbc01284ec8b3b4fb03 100644 (file)
@@ -1,7 +1,7 @@
 /*****************************************************************************
  * rc.c : remote control stdin/stdout module for vlc
  *****************************************************************************
- * Copyright (C) 2004-2007 the VideoLAN team
+ * Copyright (C) 2004-2009 the VideoLAN team
  * $Id$
  *
  * Author: Peter Surda <shurdeek@panorama.sth.ac.at>
@@ -25,6 +25,7 @@
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
+
 #ifdef HAVE_CONFIG_H
 # include "config.h"
 #endif
@@ -955,8 +956,8 @@ static int TimeOffsetChanged( vlc_object_t *p_this, char const *psz_cmd,
     p_input = vlc_object_find( p_intf, VLC_OBJECT_INPUT, FIND_ANYWHERE );
     if( p_input )
     {
-        msg_rc( STATUS_CHANGE "( time-offset: %d )",
-                var_GetInteger( p_input, "time-offset" ) );
+        msg_rc( STATUS_CHANGE "( time-offset: %"PRId64"s )",
+                (var_GetTime( p_input, "time-offset" )/1000000) );
         vlc_object_release( p_input );
     }
     vlc_mutex_unlock( &p_intf->p_sys->status_lock );