[vlc-devel] [PATCH 3/6] qt: display the number of late frames in the media stats

Steve Lhomme robux4 at ycbcr.xyz
Mon Aug 10 07:48:49 CEST 2020


---
 modules/gui/qt/dialogs/mediainfo/info_panels.cpp | 3 +++
 modules/gui/qt/dialogs/mediainfo/info_panels.hpp | 1 +
 2 files changed, 4 insertions(+)

diff --git a/modules/gui/qt/dialogs/mediainfo/info_panels.cpp b/modules/gui/qt/dialogs/mediainfo/info_panels.cpp
index 5650b772f43..02b7c6c0b24 100644
--- a/modules/gui/qt/dialogs/mediainfo/info_panels.cpp
+++ b/modules/gui/qt/dialogs/mediainfo/info_panels.cpp
@@ -591,6 +591,8 @@ InputStatsPanel::InputStatsPanel( QWidget *parent ): QWidget( parent )
                            "0", video, qtr("blocks") );
     CREATE_AND_ADD_TO_CAT( vdisplayed_stat, qtr("Displayed"),
                            "0", video, qtr("frames") );
+    CREATE_AND_ADD_TO_CAT( vlate_stat, qtr("Late"),
+                           "0", video, qtr("frames") );
     CREATE_AND_ADD_TO_CAT( vlost_frames_stat, qtr("Lost"),
                            "0", video, qtr("frames") );
 
@@ -657,6 +659,7 @@ void InputStatsPanel::update( const input_stats_t& stats )
     /* Video */
     UPDATE_INT( vdecoded_stat,     stats.i_decoded_video );
     UPDATE_INT( vdisplayed_stat,   stats.i_displayed_pictures );
+    UPDATE_INT( vlate_stat,        stats.i_late_pictures );
     UPDATE_INT( vlost_frames_stat, stats.i_lost_pictures );
 
     /* Audio*/
diff --git a/modules/gui/qt/dialogs/mediainfo/info_panels.hpp b/modules/gui/qt/dialogs/mediainfo/info_panels.hpp
index 7da1135d8c4..630e8086936 100644
--- a/modules/gui/qt/dialogs/mediainfo/info_panels.hpp
+++ b/modules/gui/qt/dialogs/mediainfo/info_panels.hpp
@@ -127,6 +127,7 @@ private:
     QTreeWidgetItem *video;
     QTreeWidgetItem *vdecoded_stat;
     QTreeWidgetItem *vdisplayed_stat;
+    QTreeWidgetItem *vlate_stat;
     QTreeWidgetItem *vlost_frames_stat;
     QTreeWidgetItem *vfps_stat;
 
-- 
2.26.2



More information about the vlc-devel mailing list