*****************************************************************************/
#define MSTRTIME_MAX_SIZE 22
-/* Well, Duh? But it does clue us in that we are converting from
- millisecond quantity to a second quantity or vice versa.
-*/
-#define MILLISECONDS_PER_SEC 1000
-
-#define msecstotimestr(psz_buffer, msecs) \
- secstotimestr( psz_buffer, (msecs / (int) MILLISECONDS_PER_SEC) )
-
/*****************************************************************************
* Prototypes
*****************************************************************************/
Until then...
*/
#if 1
- msleep( MILLISECONDS_PER_SEC * *p_buf );
+ msleep( INT64_C(1000) * *p_buf );
VCDSetOrigin(p_access, p_vcdplayer->origin_lsn,
p_vcdplayer->i_track, &(p_vcdplayer->play_item));
// p_vcd->in_still = false;
/* */
case ACCESS_GET_PTS_DELAY:
- *(int64_t*)va_arg(args,int64_t *) = MILLISECONDS_PER_SEC *
+ *(int64_t*)va_arg(args,int64_t *) = INT64_C(1000) *
var_GetInteger( p_access, MODULE_STRING "-caching" );
dbg_print( INPUT_DBG_EVENT, "GET PTS DELAY" );
return VLC_SUCCESS;
/* 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 );