[vlc-commits] qt: display the number of late frames in the media stats

Steve Lhomme git at videolan.org
Thu Aug 13 14:07:51 CEST 2020


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Aug 10 07:40:59 2020 +0200| [2f48abc4ea951a9ac1111a8399572e4f58e920af] | committer: Steve Lhomme

qt: display the number of late frames in the media stats

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2f48abc4ea951a9ac1111a8399572e4f58e920af
---

 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 5650b772f4..02b7c6c0b2 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 7da1135d8c..630e808693 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;
 



More information about the vlc-commits mailing list