p_input->p->counters.p_sout_send_bitrate = NULL;
p_input->p->counters.p_sout_sent_packets = NULL;
p_input->p->counters.p_sout_sent_bytes = NULL;
- if( p_input->p->counters.p_demux_bitrate )
- p_input->p->counters.p_demux_bitrate->update_interval = 1000000;
- if( p_input->p->counters.p_input_bitrate )
- p_input->p->counters.p_input_bitrate->update_interval = 1000000;
}
}
INIT_COUNTER( sout_sent_packets, INTEGER, COUNTER );
INIT_COUNTER( sout_sent_bytes, INTEGER, COUNTER );
INIT_COUNTER( sout_send_bitrate, FLOAT, DERIVATIVE );
- if( p_input->p->counters.p_sout_send_bitrate )
- p_input->p->counters.p_sout_send_bitrate->update_interval =
- 1000000;
}
}
else
p_counter->i_samples = 0;
p_counter->pp_samples = NULL;
- p_counter->update_interval = 0;
p_counter->last_update = 0;
return p_counter;
{
counter_sample_t *p_new, *p_old;
mtime_t now = mdate();
- if( now - p_counter->last_update < p_counter->update_interval )
+ if( now - p_counter->last_update < CLOCK_FREQ )
{
return VLC_EGENERIC;
}