Commit c624707d authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

input item: remove constant stat fields

parent 3fccdd19
......@@ -409,11 +409,6 @@ struct input_stats_t
int64_t i_displayed_pictures;
int64_t i_lost_pictures;
/* Sout */
int64_t i_sent_packets;
int64_t i_sent_bytes;
float f_send_bitrate;
/* Aout */
int64_t i_played_abuffers;
int64_t i_lost_abuffers;
......
......@@ -729,9 +729,10 @@ int libvlc_media_get_stats( libvlc_media_t *p_md,
p_stats->i_played_abuffers = p_itm_stats->i_played_abuffers;
p_stats->i_lost_abuffers = p_itm_stats->i_lost_abuffers;
p_stats->i_sent_packets = p_itm_stats->i_sent_packets;
p_stats->i_sent_bytes = p_itm_stats->i_sent_bytes;
p_stats->f_send_bitrate = p_itm_stats->f_send_bitrate;
p_stats->i_sent_packets = 0;
p_stats->i_sent_bytes = 0;
p_stats->f_send_bitrate = 0.;
vlc_mutex_unlock( &item->lock );
return true;
}
......
......@@ -294,9 +294,9 @@ FREENULL( psz_##foo );
/* Sout */
[_sentPacketsTextField setIntValue: p_item->p_stats->i_sent_packets];
[_sentBytesTextField setStringValue: [NSString stringWithFormat: @"%8.0f KiB",
(float)(p_item->p_stats->i_sent_bytes)/1024]];
0.f]];
[_sentBitrateTextField setStringValue: [NSString stringWithFormat:
@"%6.0f kb/s", (float)(p_item->p_stats->f_send_bitrate*8)*1000]];
@"%6.0f kb/s", 0.f]];
/* Audio */
[_audioDecodedTextField setIntValue: p_item->p_stats->i_decoded_audio];
......
......@@ -214,9 +214,6 @@ static int vlclua_input_item_stats( lua_State *L )
STATS_INT( decoded_video )
STATS_INT( displayed_pictures )
STATS_INT( lost_pictures )
STATS_INT( sent_packets )
STATS_INT( sent_bytes )
STATS_FLOAT( send_bitrate )
STATS_INT( played_abuffers )
STATS_INT( lost_abuffers )
#undef STATS_INT
......
......@@ -71,11 +71,6 @@ void input_stats_Compute(input_thread_t *input, input_stats_t *st)
st->i_decoded_video = priv->counters.decoded_video;
st->i_decoded_audio = priv->counters.decoded_audio;
/* Sout */
st->i_sent_packets = 0;
st->i_sent_bytes = 0;
st->f_send_bitrate = 0.f;
/* Aout */
st->i_played_abuffers = priv->counters.played_abuffers;
st->i_lost_abuffers = priv->counters.lost_abuffers;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment