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

Qt: do not show nonexistent sout stats

parent 60006dcb
......@@ -539,7 +539,7 @@ void InfoPanel::saveCodecsInfo()
/**
* Fourth Panel - Stats
* Displays the Statistics for reading/streaming/encoding/displaying in a tree
* Displays the Statistics for reading/displaying in a tree
*/
InputStatsPanel::InputStatsPanel( QWidget *parent ): QWidget( parent )
{
......@@ -572,7 +572,6 @@ InputStatsPanel::InputStatsPanel( QWidget *parent ): QWidget( parent )
CREATE_CATEGORY( audio, qtr("Audio") );
CREATE_CATEGORY( video, qtr("Video") );
CREATE_CATEGORY( input, qtr("Input/Read") );
CREATE_CATEGORY( streaming, qtr("Output/Written/Sent") );
CREATE_AND_ADD_TO_CAT( read_media_stat, qtr("Media data size"),
"0", input , "KiB" );
......@@ -595,12 +594,6 @@ InputStatsPanel::InputStatsPanel( QWidget *parent ): QWidget( parent )
CREATE_AND_ADD_TO_CAT( vlost_frames_stat, qtr("Lost"),
"0", video, qtr("frames") );
CREATE_AND_ADD_TO_CAT( send_stat, qtr("Sent"), "0", streaming, qtr("packets") );
CREATE_AND_ADD_TO_CAT( send_bytes_stat, qtr("Sent"),
"0", streaming, "KiB" );
CREATE_AND_ADD_TO_CAT( send_bitrate_stat, qtr("Upstream rate"),
"0", streaming, "kb/s" );
CREATE_AND_ADD_TO_CAT( adecoded_stat, qtr("Decoded"),
"0", audio, qtr("blocks") );
CREATE_AND_ADD_TO_CAT( aplayed_stat, qtr("Played"),
......@@ -613,7 +606,6 @@ InputStatsPanel::InputStatsPanel( QWidget *parent ): QWidget( parent )
input->setExpanded( true );
video->setExpanded( true );
streaming->setExpanded( true );
audio->setExpanded( true );
StatsTree->resizeColumnToContents( 0 );
......@@ -671,11 +663,6 @@ void InputStatsPanel::update( input_item_t *p_item )
UPDATE_INT( vdisplayed_stat, p_item->p_stats->i_displayed_pictures );
UPDATE_INT( vlost_frames_stat, p_item->p_stats->i_lost_pictures );
/* Sout */
UPDATE_INT( send_stat, p_item->p_stats->i_sent_packets );
UPDATE_INT( send_bytes_stat, (p_item->p_stats->i_sent_bytes)/ 1024 );
UPDATE_FLOAT( send_bitrate_stat, "%6.0f", (float)(p_item->p_stats->f_send_bitrate * 8000 ) );
/* Audio*/
UPDATE_INT( adecoded_stat, p_item->p_stats->i_decoded_audio );
UPDATE_INT( aplayed_stat, p_item->p_stats->i_played_abuffers );
......
......@@ -131,11 +131,6 @@ private:
QTreeWidgetItem *vlost_frames_stat;
QTreeWidgetItem *vfps_stat;
QTreeWidgetItem *streaming;
QTreeWidgetItem *send_stat;
QTreeWidgetItem *send_bytes_stat;
QTreeWidgetItem *send_bitrate_stat;
QTreeWidgetItem *audio;
QTreeWidgetItem *adecoded_stat;
QTreeWidgetItem *aplayed_stat;
......
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