[vlc-commits] Qt: do not show nonexistent sout stats
Rémi Denis-Courmont
git at videolan.org
Tue Dec 12 19:36:48 CET 2017
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Dec 12 20:20:07 2017 +0200| [bd19838c7a0d7e563d5623005e6059a5790e21d7] | committer: Rémi Denis-Courmont
Qt: do not show nonexistent sout stats
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bd19838c7a0d7e563d5623005e6059a5790e21d7
---
modules/gui/qt/components/info_panels.cpp | 15 +--------------
modules/gui/qt/components/info_panels.hpp | 5 -----
2 files changed, 1 insertion(+), 19 deletions(-)
diff --git a/modules/gui/qt/components/info_panels.cpp b/modules/gui/qt/components/info_panels.cpp
index 626aa737db..d465993107 100644
--- a/modules/gui/qt/components/info_panels.cpp
+++ b/modules/gui/qt/components/info_panels.cpp
@@ -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 );
diff --git a/modules/gui/qt/components/info_panels.hpp b/modules/gui/qt/components/info_panels.hpp
index ae3eac0ec1..1490425dd3 100644
--- a/modules/gui/qt/components/info_panels.hpp
+++ b/modules/gui/qt/components/info_panels.hpp
@@ -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;
More information about the vlc-commits
mailing list